[llvm] [llvm-objcopy] Add --verbose option to llvm-strip/llvm-objcopy (PR #196611)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Tue May 12 00:36:20 PDT 2026


https://github.com/jh7370 commented:

I think we could do with a test case or two where the input and output formats are different, e.g. `-I binary` or `-O srec` etc. This will show that the `elf64-x86-64` aspect is working properly.

Please make sure to run the formatter, as described in [this comment](https://github.com/llvm/llvm-project/pull/196611#issuecomment-4418729748).

> I prefer the LLVM convention but am open to the binutils style if @jh7370 has a preference.

My instinct is to follow the binutils style, in case anybody is using scripts to parse this output: it would mean porting from one to the other is easier. However, I'm also not strongly persuaded that we need to do that, so I'm equally happy with consistency with the other tools. Thinking about things further and given the lack of strong push for this option, I think it's unlikely people are not switching from GNU to llvm-objcopy because of a missing --verbose option, so it's unlikely there are significant scripts around that need a specific format and consistency therefore becomes more important.

https://github.com/llvm/llvm-project/pull/196611


More information about the llvm-commits mailing list