【发布时间】:2020-07-16 16:44:36
【问题描述】:
我需要一种方法来重命名由 emscripten 从 C 文件编译的 WebAssembly 二进制存档文件中的某些符号。
使用 gcc 时,我可以使用 objcopy --redefine-sym 命令,但这给了我 objcopy: libname.bc: file format not recognized
我也试过llvm-objcopy,但这给了我llvm-objcopy: error: unsupported object file format
但是,运行 llvm-nm 确实有效。
运行file 会得到libname.bc: WebAssembly (wasm) binary module version 0x1 (MVP)
【问题讨论】:
标签: c llvm rename webassembly emscripten