[PATCH] D56873: [llvm-objcopy] [COFF] Implement --only-section

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 18 12:07:37 PST 2019


mstorsjo added a comment.

In D56873#1363068 <https://reviews.llvm.org/D56873#1363068>, @jhenderson wrote:

> Just to confirm, the desired behaviour of combining certain switches (e.g. --strip-debug and --only-section) is for the explicitly mentioned --only-section section to be kept despite it potentially being removed by the other switch?


Good point - that's the impression I got from reading the structure of handleArgs for ELF, and I hadn't doublechecked until now. However this does seem to be wrong - GNU objcopy returns the intersection of the sets of sections kept by the two options.


Repository:
  rL LLVM

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

https://reviews.llvm.org/D56873





More information about the llvm-commits mailing list