一个相当于objcopy把适用于Mac / iPhone? [英] An objcopy equivalent for Mac / iPhone?
问题描述
我要重命名的东西目标文件(.o)内的符号,这将是在Mac相当于binutils的 objcopy把--redefine-SYMS的
工具。
I would like to rename symbols inside object files (.o) with something that would be the Mac equivalent of binutils' objcopy --redefine-syms
tool.
我发现没有 ARM-苹果darwin10-objcopy把
。我尝试了MacPorts的 ARM-ELF-binutils的
端口,还试图打了一下与 otool
和 segedit
但没有成功。
I found no arm-apple-darwin10-objcopy
. I tried the MacPorts' arm-elf-binutils
port and also tried to play a bit with otool
and segedit
without much success.
任何想法吗?
推荐答案
听起来像是瓦格纳雾的objconv工作
Sounds like a job for Agner Fog's objconv
我现在已经完成了充分
在对象的Mach-O文件的支持
文件转换器中提到我
previous职位。您可以使用它作为一个
更换缺少的objcopy把
实用工具。
I have now finished making full support for Mach-O files in the object file converter mentioned in my previous posts. You may use it as a replacement for the missing objcopy utility.
Objconv可用于以下
用途:将目标文件和
Mach-O的之间的函数库/归档文件,
ELF,COFF和OMF格式的所有x86
和x86-64平台。更改符号
在目标文件名,使符号
弱,别名添加到符号。结果
建立,修改和静态转换
库文件(*。A,* .LIB)跨越
平台(苹果机,Linux,BSD,Windows)中搜索
转储对象文件和可执行文件
拆开目标文件和
可执行文件。很好
反汇编。
它可被下载
从www.agner.org/optimize/。该
来源$ C $ C GPL下是可用的。
让我知道如果你想测试它。玩得开心!
Objconv can be used for the following
purposes: Convert object files and
library/archive files between Mach-O,
ELF, COFF and OMF formats for all x86
and x86-64 platforms. Change symbol
names in object files, make symbols
weak, add alias names to symbols.
Build, modify and convert static
library files (*.a, *.lib) across
platforms (Mac, Linux, BSD, Windows)
Dump object files and executable files
Disassemble object files and
executable files. Very good
disassembler.
It can be downloaded
from www.agner.org/optimize/. The
source code is available under GPL.
Let me know if you want to test it. Have fun!
这篇关于一个相当于objcopy把适用于Mac / iPhone?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!