百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

atosl

> 编程语言
开源

这是 Apple atos 工具的一个部分替代品,用于将二进制文件中的地址转换为符号。

351 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

这是 Apple atos 工具的一个部分替代品,用于将二进制文件中的地址转换为符号。


This project is not actively maintained. Proceed at your own risk!


atosl

atosl is a partial replacement for Apple's atos tool for converting addresses within a binary file to symbols.

Why

The primary benefit of atosl is its ability to run on other platforms. atosl has been tested on Linux but will likely run on any platform that libdwarf is available for.

Requirements

libdwarf - This library does the heavily lifting of parsing the DWARF debugging data within the binaries.

Install Dependencies on OS X

Install Homebrew

bash
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"

Install Dependencies

bash
brew install https://raw.githubusercontent.com/Homebrew/homebrew/7059399/Library/Formula/binutils.rb
brew install https://gist.github.com/zlandau/7550479/raw/f72753f6a59f6a3fadf9a2e2952a9f6846c15a8d/libdwarf.rb

Update config.mk.local

bash
echo "LDFLAGS += -L$(dirname $(brew list binutils| grep libiberty.a))" >> config.mk.local

Usage

atosl currently supports debug (DSYM) files and DYLIB with debug symbols

$ atosl -o SomeApp.app.dSYM/Contents/Resources/DWARF/SomeApp --load-address 0x3c00 0x12345 0x55555
-[AwesomenessContainer parseAwesomeness:error:] (in SomeApp) (AwesomenessContainer.m:400)
-[LamenessEliminator destroyLameness] (in SomeApp) (LamenessEliminator.m:204)

Note that there are two methods of symbol lookup. The default method looks through the DWARF complication units. If you use the --globals option it instead reads from the .debug_pubnames section. You should try both options to see which one you find most reliable and fastest.

Limitations and differences

  • Doesn't display function parameters in the symbols
    • This could be added, it just wasn't deemed worth the cycles
  • Only supports ARM

Future Work

  • Speed improvements
    • Some of the libdwarf routines are implemented without too much concern for performance.
  • Add support for more architectures
    • There's nothing particularly architecture-specific other than having to map between an architecture name and its identifier so we can find them in the Mach binary
  • Caching, caching, caching
  • Reduce cases were atosl output differs from atos (for whatever reason)
  • Port to a version of libdwarf that is still supported

License

BSD License

For atosl software

Copyright (c) 2013, Facebook, Inc. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

  • Neither the name Facebook nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言