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