]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - binutils/readelf.c
Try harder to find the correct symbol to associate with OPEN GNU BUILD notes.
authorNick Clifton <nickc@redhat.com>
Tue, 14 Mar 2017 12:57:09 +0000 (12:57 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 14 Mar 2017 12:57:09 +0000 (12:57 +0000)
commitc799a79d66d09c442d85467986c2e8873f09297c
tree2965d196134777e2ac1c46bd64acf31eea9e150d
parent0efcde634d45f4cda03fd18c43ff449103559d7a
Try harder to find the correct symbol to associate with OPEN GNU BUILD notes.

* readelf.c (print_gnu_build_attribute_description): Move symbol
printing code to...
(print_symbol_for_build_attribute): New function.  ...here.
Add to find the best symbol to associate with an OPEN note.
Add code to cache the symbol table and string table, so that they
are not loaded every time a note is displayed.
* testsuite/binutils-all/note-2-32.s: Add a function symbol.
* testsuite/binutils-all/note-2-64.s: Likewise.
* testsuite/binutils-all/note-2-32.d: Update expected note output.
* testsuite/binutils-all/note-2-64.d: Likewise.
binutils/ChangeLog
binutils/readelf.c
binutils/testsuite/binutils-all/note-2-32.d
binutils/testsuite/binutils-all/note-2-32.s
binutils/testsuite/binutils-all/note-2-64.d
binutils/testsuite/binutils-all/note-2-64.s