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

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