[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:28:03 PDT 2024
================
@@ -623,6 +623,58 @@ handleUserSection(const NewSectionInfo &NewSection,
return F(NewSection.SectionName, Data);
}
+static Error verifyNoteSection(StringRef Name, endianness Endianness,
+ ArrayRef<uint8_t> Data) {
+ // An ELF note has the following structure:
----------------
MaskRay wrote:
Note: one note section may contain multiple notes.
The practical example is `.note.gnu.property`.
There is some alignment complexity. See https://reviews.llvm.org/D150022
https://github.com/llvm/llvm-project/pull/90458
More information about the llvm-commits
mailing list