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

a1055d
diff --git a/src/elflint.c b/src/elflint.c
a1055d
index df1b3a0..f4d82d9 100644
a1055d
--- a/src/elflint.c
a1055d
+++ b/src/elflint.c
a1055d
@@ -4329,6 +4329,8 @@ section [%2d] '%s': unknown core file note type %" PRIu32
a1055d
 	  case NT_GNU_HWCAP:
a1055d
 	  case NT_GNU_BUILD_ID:
a1055d
 	  case NT_GNU_GOLD_VERSION:
a1055d
+	  case NT_GNU_PROPERTY_TYPE_0:
a1055d
+	  case 256:
a1055d
 	    break;
a1055d
 
a1055d
 	  case 0:
a1055d
diff --git a/src/elflint.c b/src/elflint.c
a1055d
index 0a26d97..1cbf570 100644
a1055d
--- a/src/elflint.c
a1055d
+++ b/src/elflint.c
a1055d
@@ -3906,10 +3906,11 @@ section [%2zu] '%s': size not multiple of entry size\n"),
a1055d
 	       cnt, section_name (ebl, cnt),
a1055d
 	       (int) shdr->sh_type);
a1055d
 
a1055d
+#define SHF_GNU_BUILD_NOTE    (1 << 20)
a1055d
 #define ALL_SH_FLAGS (SHF_WRITE | SHF_ALLOC | SHF_EXECINSTR | SHF_MERGE \
a1055d
 		      | SHF_STRINGS | SHF_INFO_LINK | SHF_LINK_ORDER \
a1055d
 		      | SHF_OS_NONCONFORMING | SHF_GROUP | SHF_TLS \
a1055d
-		      | SHF_COMPRESSED)
a1055d
+		      | SHF_COMPRESSED | SHF_GNU_BUILD_NOTE)
a1055d
       if (shdr->sh_flags & ~(GElf_Xword) ALL_SH_FLAGS)
a1055d
 	{
a1055d
 	  GElf_Xword sh_flags = shdr->sh_flags & ~(GElf_Xword) ALL_SH_FLAGS;