Blame SOURCES/elfutils-0.173-new-notes-hack.patch

95a93d
diff --git a/src/elflint.c b/src/elflint.c
95a93d
index eec799b2..31092f2e 100644
95a93d
--- a/src/elflint.c
95a93d
+++ b/src/elflint.c
95a93d
@@ -3905,10 +3905,11 @@ section [%2zu] '%s': size not multiple of entry size\n"),
95a93d
 	       cnt, section_name (ebl, cnt),
95a93d
 	       (int) shdr->sh_type);
95a93d
 
95a93d
+#define SHF_GNU_BUILD_NOTE    (1 << 20)
95a93d
 #define ALL_SH_FLAGS (SHF_WRITE | SHF_ALLOC | SHF_EXECINSTR | SHF_MERGE \
95a93d
 		      | SHF_STRINGS | SHF_INFO_LINK | SHF_LINK_ORDER \
95a93d
 		      | SHF_OS_NONCONFORMING | SHF_GROUP | SHF_TLS \
95a93d
-		      | SHF_COMPRESSED)
95a93d
+		      | SHF_COMPRESSED | SHF_GNU_BUILD_NOTE)
95a93d
       if (shdr->sh_flags & ~(GElf_Xword) ALL_SH_FLAGS)
95a93d
 	{
95a93d
 	  GElf_Xword sh_flags = shdr->sh_flags & ~(GElf_Xword) ALL_SH_FLAGS;