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

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 18 02:09:54 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:
----------------
jh7370 wrote:

I always get confused about .note and alignment behaviours. Are you suggesting @MaskRay that some action needs taking here?

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


More information about the llvm-commits mailing list