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

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 21 03:39:14 PST 2019


mstorsjo added a comment.

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

> By the way, @jakehehrlich may remember exactly what the intended behaviour is in llvm-objcopy for ELF and combining rules. We discussed it a while back, but I can't remember them exactly, but it was something like explicit section keeps trump implicit section strips, and two explicits are an error. You might want to double-check with him.


Ok. At least for combining `--strip-debug` with `--only-section`, the ELF version doesn't match what GNU objcopy does.

I don't have a concrete use/need for `--only-section` myself so I haven't invested that much thought into it, I only brought it along from the code from ELFObjcopy.cpp that I based the COFF version on.


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