[binutils-gdb] Allow readelf to recognise GO buildid notes.
Nick Clifton
nickc@sourceware.org
Tue Jun 15 10:44:33 GMT 2021
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c8795e1f2f4d8617f22c3bd40dad75c75482e164
commit c8795e1f2f4d8617f22c3bd40dad75c75482e164
Author: Nick Clifton <nickc@redhat.com>
Date: Tue Jun 15 11:43:43 2021 +0100
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.
Diff:
---
binutils/ChangeLog | 4 ++++
binutils/readelf.c | 2 ++
include/ChangeLog | 4 ++++
include/elf/common.h | 1 +
4 files changed, 11 insertions(+)
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index c70a45a6a96..af73112c81f 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 e104a7ed2a1..20100f11ce6 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;
}
diff --git a/include/ChangeLog b/include/ChangeLog
index 27c5e294497..b6bf28aa7c6 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
+2021-06-15 Nick Clifton <nickc@redhat.com>
+
+ * elf/common.h (NT_GO_BUILDID): Define.
+
2021-06-02 Shahab Vahedi <shahab@synopsys.com>
* dis-asm.h (disassembler_options_arc): New prototype.
diff --git a/include/elf/common.h b/include/elf/common.h
index 24d0a09b7c8..58b0936db3b 100644
--- a/include/elf/common.h
+++ b/include/elf/common.h
@@ -748,6 +748,7 @@
#define NT_VERSION 1 /* Contains a version string. */
#define NT_ARCH 2 /* Contains an architecture string. */
+#define NT_GO_BUILDID 4 /* Contains GO buildid data. */
/* Values for notes in non-core files using name "GNU". */
More information about the Binutils-cvs
mailing list