aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2021-06-15 11:43:43 +0100
committerNick Clifton <nickc@redhat.com>2021-06-15 11:43:43 +0100
commitc8795e1f2f4d8617f22c3bd40dad75c75482e164 (patch)
treeb34062544134637a2effd75950506f851fba125f /binutils
parentb00af7c8c615891f24a21d79a5bea35ef82bf252 (diff)
downloadgdb-c8795e1f2f4d8617f22c3bd40dad75c75482e164.zip
gdb-c8795e1f2f4d8617f22c3bd40dad75c75482e164.tar.gz
gdb-c8795e1f2f4d8617f22c3bd40dad75c75482e164.tar.bz2
Allow readelf to recognise GO buildid notes.
binutils * readelf.c (get_note_type): Add support for NT_GO_BUILDID. include * elf/common.h (NT_GO_BUILDID): Define.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog4
-rw-r--r--binutils/readelf.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index c70a45a..af73112 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,7 @@
+2021-06-15 Nick Clifton <nickc@redhat.com>
+
+ * readelf.c (get_note_type): Add support for NT_GO_BUILDID.
+
2021-06-15 Alan Modra <amodra@gmail.com>
* readelf.c (locate_dynamic_section, is_pie): New functions.
diff --git a/binutils/readelf.c b/binutils/readelf.c
index e104a7e..20100f1 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -18859,6 +18859,8 @@ get_note_type (Filedata * filedata, unsigned e_type)
return _("OPEN");
case NT_GNU_BUILD_ATTRIBUTE_FUNC:
return _("func");
+ case NT_GO_BUILDID:
+ return _("GO BUILDID");
default:
break;
}