gpt4 book ai didi

macos - Mac/iPhone 的 objcopy 等效项?

转载 作者:行者123 更新时间:2023-12-02 05:23:15 26 4
gpt4 key购买 nike

我想使用类似于 binutils 的 objcopy --redefine-syms 工具的 Mac 版本来重命名目标文件 (.o) 内的符号。

我没有找到arm-apple-darwin10-objcopy。我尝试了 MacPorts 的 arm-elf-binutils 端口,还尝试使用 otoolsegedit 进行了一些尝试,但没有取得太大成功。

请问有什么想法吗?

最佳答案

听起来像是 Agner Fog's objconv 的工作.

来自announcement :

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 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.

关于macos - Mac/iPhone 的 objcopy 等效项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3475854/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com