summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2007-08-11 21:18:09 +0000
committerRoland McGrath <[email protected]>2007-08-11 21:18:09 +0000
commitd82217264c4ac9108dbda1502a545ea25f6d22fe (patch)
tree1f388a254362cd39d31eba330bbbe5a21eaa9d8c /src
parent42f686820a19806da629990bf7ae69a6a2fcfb1f (diff)
2007-08-11 Roland McGrath <[email protected]>
* elflint.c (check_note): Accept NT_GNU_HWCAP, NT_GNU_BUILD_ID.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/elflint.c14
2 files changed, 14 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 505abb42..3e708378 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2007-08-11 Roland McGrath <[email protected]>
+
+ * elflint.c (check_note): Accept NT_GNU_HWCAP, NT_GNU_BUILD_ID.
+
2007-08-04 Ulrich Drepper <[email protected]>
* readelf.c (hex_dump): Use isprint to determine whether to print
diff --git a/src/elflint.c b/src/elflint.c
index 9c964888..e8787d01 100644
--- a/src/elflint.c
+++ b/src/elflint.c
@@ -3692,16 +3692,22 @@ phdr[%d]: unknown core file note type %" PRIu64 " at offset %" PRIu64 "\n"),
}
}
else
- {
- if (type != NT_VERSION)
+ switch (type)
+ {
+ case NT_GNU_ABI_TAG: /* aka NT_VERSION */
+ case NT_GNU_HWCAP:
+ case NT_GNU_BUILD_ID:
+ /* Known type. */
+ break;
+
+ default:
ERROR (gettext ("\
phdr[%d]: unknown object file note type %" PRIu64 " at offset %" PRIu64 "\n"),
cnt, type, idx);
- }
+ }
/* Move to the next entry. */
idx += 3 * align + ALIGNED_LEN (namesz) + ALIGNED_LEN (descsz);
-
}
gelf_freechunk (ebl->elf, notemem);