Displaying 1 result from an estimated 1 matches for "strip_command".
2017 Jun 02
8
llvm-objcopy proposal
...me relocatable binaries.
11. Use Case: Removing local symbols
Who uses it: LLVM
```sh
objcopy --discard-all foo foo
```
[Example use](
https://github.com/llvm-mirror/llvm/blob/cd789d8cfe12aa374e66eafc748f4fc06e149ca7/cmake/modules/AddLLVM.cmake
)
(hidden in definition of “strip_command” using strip instead of objcopy
and
using -x instead of --discard-all)
When is it useful:
Anytime you don’t need locals for debugging this can be useful.
12. Use Case: Removing a specific unwanted section
Who uses it: LLVM
```sh
objcopy --remove-section=.debug_aranges foo...