inbelic wrote:

> Rather than a new option, I'd rather you just add support for 
> `--only-section` and `--dump-section`, which can then be specified in 
> conjunction with each other to achieve the same result. IIRC, a while back, 
> `--split-dwo` was considered a mistake, because the same effect could be 
> achieved by specifying `--extract-dwo` and `--strip-dwo` and `--split-dwo` 
> doesn't exist in GNU objcopy (which we aim for broad compatibility with).

I assume you mean `--remove-section` and `--dump-section`. The issue for our 
use-case is that `--dump-section` only outputs the section contents, it does 
not output a valid object with just one section specified.

It could be that such an option isn't really applicable to other object 
formats, and we could go about this as a `DXContainer` specific option.

We thought it best not to have a different implementation of `dump-section` for 
`DXContainer` that outputs more than just the contents.

https://github.com/llvm/llvm-project/pull/153265
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to