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

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 4 00:41:29 PDT 2024


================
@@ -1,34 +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 bits
 # RUN: echo -e -n "\x04\x00\x00\x00" >  %t-miss-padding-note.bin
 # RUN: echo -e -n "\x07\x00\x00\x00" >> %t-miss-padding-note.bin
 # RUN: echo -e -n "\x03\x00\x00\x00" >> %t-miss-padding-note.bin
 # RUN: echo -e -n "GNU\x00"          >> %t-miss-padding-note.bin
 # RUN: echo -e -n "\x0c\x0d\x0e"     >> %t-miss-padding-note.bin
-#
+
+## The namesz field bit is incorrect
----------------
jh7370 wrote:

```suggestion
## The namesz field bit is incorrect.
```
Same below for all comments.

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


More information about the llvm-commits mailing list