[PATCH] D61672: [llvm-objcopy] Allow strip symtab in executables and DSOs
Jordan Rupprecht via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 10 16:18:37 PDT 2019
rupprecht added a comment.
This is an issue for fully linked executables that still have relocation sections, e.g. because it was linked with the `--emit-relocs` flag:
$ echo 'int main() { return 0; }' | clang -Wl,--emit-relocs -x c - -o foo && llvm-objcopy --strip-unneeded foo
llvm-objcopy: error: 'foo': not stripping symbol '__gmon_start__' because it is named in a relocation
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61672/new/
https://reviews.llvm.org/D61672
More information about the llvm-commits
mailing list