[llvm] [llvm-objdump] Add possibility to verify .note section format (PR #90458)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 3 03:04:19 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:
----------------
serge-sans-paille wrote:
It seems possible to hook in ` llvm::objcopy::elf::Object::addSection `, but then it would also be a good opportunity to move the conversion to SHT_NOTE based on the section name there too... Let's investigate that in a follow-up PR
https://github.com/llvm/llvm-project/pull/90458
More information about the llvm-commits
mailing list