HomePhabricator

Revert [llvm-objcopy] Allow strip symtab from executables and DSOs

Description

Revert [llvm-objcopy] Allow strip symtab from executables and DSOs

This reverts r365193 (git commit 194f16b3548bcb23a7f0fd638778ed72edd18d37)

This patch doesn't work with binaries built w/ --emit-relocs, e.g.

$ 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

Details

Committed
rupprechtJul 10 2019, 4:32 PM
Parents
rL365711: [SDAG] commute setcc operands to match a subtract
Branches
Unknown
Tags
Unknown