[PATCH] D61672: [llvm-objcopy] Allow strip symtab in executables and DSOs

Eugene Leviant via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 16 23:33:15 PDT 2019


evgeny777 added a comment.

> I'm still confused. If the behavior intended only has to do with the existence of relocations why are we making this change? A clear difference of behavior needs to be pointed out and that hasn't been made clear.

llvm-objcopy never strips STT_SECTION, STB_GLOBAL and SHN_UNDEF symbols, not matter if they referenced by relocations or not. This is right thing to do in ET_REL, but doesn't make sense in ET_DYN/EXEC.
See `isUnneededSymbol`.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61672/new/

https://reviews.llvm.org/D61672





More information about the llvm-commits mailing list