Improve decoding of corrupt/unrecognised gnu build attribute notes.
authorNick Clifton <nickc@redhat.com>
Wed, 26 Apr 2017 13:23:26 +0000 (14:23 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 26 Apr 2017 13:23:26 +0000 (14:23 +0100)
commit3e6b644558f941d3fe482e15efbc53d8f39ef8b7
tree1fc8a414d8e72c7136562a5e449fd93f8a70f2e1
parentb41c5a85a734b9ca813d4a314b66ef4b4b4d1b11
Improve decoding of corrupt/unrecognised gnu build attribute notes.

* readelf.c (process_section_headers): Warn about overlarge
sections.
(print_gnu_build_attribute_name): Print the number of unrecognised
note types.  Fix formatting in the presence of errors.
(testsuite/binutils-all/note-2-32.s): Fix encoding of numeric notes.
(testsuite/binutils-all/note-2-64.s): Likewise.
binutils/ChangeLog
binutils/readelf.c
binutils/testsuite/binutils-all/note-2-32.s
binutils/testsuite/binutils-all/note-2-64.s