[PATCH] D46369: [llvm-objcopy] Add --strip-symbol (-N) option

Paul Semel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 3 03:29:26 PDT 2018


paulsemel added a comment.

Alright, I understand what you're saying to me !
However, in this case, we might want to change other options behavior (I can also leave the ELF file in an invalid state with `--localize-symbol` or `--globalize-symbol`.
I actually truly think that, for the options where the user explicitly gives a symbol name, we might just do whatever he wants. But I agree with you for other options like `--weaken` or `--strip-unneeded`, where in this case we really want to have the ELF file in a valid state.
Anyway, if you want it, I can follow, the GNU objcopy behavior for this one (if I understood you well, this might consist of issuing a warning, and removing section)


Repository:
  rL LLVM

https://reviews.llvm.org/D46369





More information about the llvm-commits mailing list