From: Roland McGrath Date: Sat, 11 Aug 2007 21:18:09 +0000 (+0000) Subject: 2007-08-11 Roland McGrath X-Git-Tag: elfutils-0.129~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d82217264c4ac9108dbda1502a545ea25f6d22fe;p=platform%2Fupstream%2Felfutils.git 2007-08-11 Roland McGrath * elflint.c (check_note): Accept NT_GNU_HWCAP, NT_GNU_BUILD_ID. --- diff --git a/libdwfl/dwfl_module_addrsym.c b/libdwfl/dwfl_module_addrsym.c index e78e292..63eca77 100644 --- a/libdwfl/dwfl_module_addrsym.c +++ b/libdwfl/dwfl_module_addrsym.c @@ -106,6 +106,7 @@ dwfl_module_addrsym (Dwfl_Module *mod, GElf_Addr addr, const char *sizeless_name = NULL; GElf_Sym sizeless_sym; GElf_Word sizeless_shndx = SHN_UNDEF; + sizeless_sym.st_value = 0; /* Keep track of the lowest address a relevant sizeless symbol could have. */ GElf_Addr min_label = addr; diff --git a/src/ChangeLog b/src/ChangeLog index 505abb4..3e70837 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2007-08-11 Roland McGrath + + * elflint.c (check_note): Accept NT_GNU_HWCAP, NT_GNU_BUILD_ID. + 2007-08-04 Ulrich Drepper * readelf.c (hex_dump): Use isprint to determine whether to print diff --git a/src/elflint.c b/src/elflint.c index 9c96488..e8787d0 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);