[llvm] [llvm-objdump] Add possibility to verify .note section format (PR #90458)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 5 21:23:04 PDT 2024


================
@@ -0,0 +1,46 @@
+## Verify that --add-section warns on invalid note sections.
+
+## Add [namesz, descsz, type, name, desc] for a build id.
+
+## Notes should be padded on 8 bytes.
+# RUN: echo -e -n "\x04\x00\x00\x00" >  %t-miss-padding-note.bin
----------------
MaskRay wrote:

I wonder whether this should be changed to an assembler test. `REQUIRES: x86-registered-target` will be needed but the test will be easier to read.

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


More information about the llvm-commits mailing list