[PATCH] D60324: [llvm-objcopy] Add switch to allow removing referenced sections

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 10 07:19:08 PDT 2019


jhenderson added a comment.

A couple of examples where this might be useful:

1. Removing just the dynamic symbols. This would cause an error if there are any dynamic relocation sections. However, not all dynamic relocations require symbols, so potentially NO dynamic relocations need symbols. The .dynsym is then unnecessary.
2. Removing the .dynstr. This would cause an error due to .dynamic referencing it. This section doesn't necessarily have tags that reference strings. Additionally, users might want to strip the information, but still provide some of the ELF file for example to aid debugging an issue.


Repository:
  rL LLVM

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

https://reviews.llvm.org/D60324





More information about the llvm-commits mailing list