[llvm] [llvm-objdump] Error with relevant message when adding invalid notes (PR #90458)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 29 14:33:50 PDT 2024


MaskRay wrote:

I am on the fence whether there should be an error (which will set the exit code to 1 and suppress the output).

One use case for `--add-section` is to create intentionally invalid object files to test consumers.
While we can check SHT_NOTE, it's not practical to check other section types.

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


More information about the llvm-commits mailing list