aboutsummaryrefslogtreecommitdiff
path: root/binutils/testsuite/binutils-all/note-2-64.d
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2017-03-14 12:57:09 +0000
committerNick Clifton <nickc@redhat.com>2017-03-14 12:57:09 +0000
commitc799a79d66d09c442d85467986c2e8873f09297c (patch)
tree2965d196134777e2ac1c46bd64acf31eea9e150d /binutils/testsuite/binutils-all/note-2-64.d
parent0efcde634d45f4cda03fd18c43ff449103559d7a (diff)
downloadbinutils-c799a79d66d09c442d85467986c2e8873f09297c.zip
binutils-c799a79d66d09c442d85467986c2e8873f09297c.tar.gz
binutils-c799a79d66d09c442d85467986c2e8873f09297c.tar.bz2
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.
Diffstat (limited to 'binutils/testsuite/binutils-all/note-2-64.d')
-rw-r--r--binutils/testsuite/binutils-all/note-2-64.d2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/testsuite/binutils-all/note-2-64.d b/binutils/testsuite/binutils-all/note-2-64.d
index 3dd4582..8535821 100644
--- a/binutils/testsuite/binutils-all/note-2-64.d
+++ b/binutils/testsuite/binutils-all/note-2-64.d
@@ -13,5 +13,5 @@
[ ]+\*<ABI>0x0[ ]+0x00000000[ ]+NT_GNU_BUILD_ATTRIBUTE_OPEN[ ]+Applies from offset 0x100
[ ]+\$<version>1[ ]+0x00000008[ ]+NT_GNU_BUILD_ATTRIBUTE_OPEN[ ]+Applies from offset 0x10. \(file: note2.s\)
[ ]+!<stack prot>false[ ]+0x00000000[ ]+NT_GNU_BUILD_ATTRIBUTE_OPEN[ ]+Applies from offset 0x10.
-[ ]+\*<PIC>pic[ ]+0x00000000[ ]+NT_GNU_BUILD_ATTRIBUTE_FUNC[ ]+Applies from offset 0x10.
+[ ]+\*<PIC>pic[ ]+0x00000000[ ]+NT_GNU_BUILD_ATTRIBUTE_FUNC[ ]+Applies to func at 0x10. \(func: func1\)
#...