Improve readelf's selection of a file start symbol when displaying a gnu build attribute.
authorNick Clifton <nickc@redhat.com>
Fri, 23 Mar 2018 12:20:03 +0000 (12:20 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 23 Mar 2018 12:20:03 +0000 (12:20 +0000)
commit8fd75781892c7458702f72b3b9cb1927609716de
tree369c0f6703cb70a23747787aa20dd1cea653cbc8
parentf6c4d4b152a985f355cd1552ce01c99a589c936f
Improve readelf's selection of a file start symbol when displaying a gnu build attribute.

* readelf.c (get_symbol_for_build_attribute): Skip ARM mapping
symbols.
(print_gnu_build_attribute_description): If no file start symbol
could be found, look for one two bytes into the file.
* testsuite/binutils-all/note-4-64.s: Set the address of the file
start symbol to two bytes into the file.
* testsuite/binutils-all/note-4-32.s: Likewise.
binutils/ChangeLog
binutils/readelf.c
binutils/testsuite/binutils-all/note-4-32.d
binutils/testsuite/binutils-all/note-4-32.s
binutils/testsuite/binutils-all/note-4-64.s