HomePhabricator

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

Authored by rupprecht on Jul 10 2019, 4:32 PM.

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

llvm-svn: 365712

Details

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