[PATCH] D50589: [llvm-objcopy] Implement -G/--keep-global-symbol(s).
Jordan Rupprecht via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 10 16:47:40 PDT 2018
rupprecht created this revision.
rupprecht added reviewers: jakehehrlich, jhenderson.
Herald added a reviewer: alexshap.
Herald added a subscriber: llvm-commits.
Port GNU Objcopy -G/--keep-global-symbol(s).
This is slightly different than the already-implemented --globalize-symbol, which marks a symbol as global when copying. When --keep-global-symbol (alias -G) is used, *only* those symbols marked will stay global, and all other globals are demoted to local. (Also note that it doesn't *promote* a symbol to global). Additionally, there is a pluralized version of the flag --keep-global-symbols, which effectively applies --keep-global-symbol for every non-comment in a file.
Repository:
rL LLVM
https://reviews.llvm.org/D50589
Files:
test/tools/llvm-objcopy/keep-global-symbols.test
tools/llvm-objcopy/ObjcopyOpts.td
tools/llvm-objcopy/llvm-objcopy.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50589.160208.patch
Type: text/x-patch
Size: 7650 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180810/f3140cf3/attachment.bin>
More information about the llvm-commits
mailing list