[llvm] Add functionality to llvm-objcopy to remove prefixes (PR #79415)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 25 00:10:17 PST 2024
https://github.com/jh7370 requested changes to this pull request.
Hi, thanks for the patch! What's the motivation behind being able to remove prefixes from symbol names? Note that removing prefixes could lead to various issues, e.g. multiple symbols with the same name in the same file, resulting in the linker not knowing the right symbol to pick, so adding this option needs to be done carefully. Does GNU objcopy have any prior art for this option?
In addition to your code changes, please update the llvm-objcopy CommandGuide doc (llvm/docs/CommandGuide/llvm-objcopy.rst) to describe the new option.
https://github.com/llvm/llvm-project/pull/79415
More information about the llvm-commits
mailing list