This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Add support for a GNU BUILD note type to record the enum size.
- From: Nick Clifton <nickc at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 16 Mar 2017 16:45:45 -0000
- Subject: [binutils-gdb] Add support for a GNU BUILD note type to record the enum size.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a8be5506b626a57f84771c5ddfaefabf2d61c017
commit a8be5506b626a57f84771c5ddfaefabf2d61c017
Author: Nick Clifton <nickc@redhat.com>
Date: Thu Mar 16 16:44:55 2017 +0000
Add support for a GNU BUILD note type to record the enum size.
include * elf/common.h (GNU_BUILD_ATTRIBUTE_SHORT_ENUM): New GNU BUILD
note type.
binutils * readelf.c (print_gnu_build_attribute_name): Add support for
GNU_BUILD_ATTRIBUTE_SHORT_ENUM.
Diff:
---
binutils/ChangeLog | 5 +++++
binutils/readelf.c | 5 +++++
include/ChangeLog | 5 +++++
include/elf/common.h | 1 +
4 files changed, 16 insertions(+)
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index f9fb746..6084716 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2017-03-16 Nick Clifton <nickc@redhat.com>
+
+ * readelf.c (print_gnu_build_attribute_name): Add support for
+ GNU_BUILD_ATTRIBUTE_SHORT_ENUM.
+
2017-03-14 Nick Clifton <nickc@redhat.com>
* readelf.c (print_gnu_build_attribute_description): Move symbol
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 34781ae..5738fe5 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -16833,6 +16833,11 @@ print_gnu_build_attribute_name (Elf_Internal_Note * pnote)
expected_types = "*";
++ name;
break;
+ case GNU_BUILD_ATTRIBUTE_SHORT_ENUM:
+ text = _("<short enum>");
+ expected_types = "!+";
+ ++ name;
+ break;
default:
if (ISPRINT (* name))
diff --git a/include/ChangeLog b/include/ChangeLog
index a329eb0..eacfeb9a 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,8 @@
+2017-03-16 Nick Clifton <nickc@redhat.com>
+
+ * elf/common.h (GNU_BUILD_ATTRIBUTE_SHORT_ENUM): New GNU BUILD
+ note type.
+
2017-03-14 Jakub Jelinek <jakub@redhat.com>
PR debug/77589
diff --git a/include/elf/common.h b/include/elf/common.h
index 8888a55..65877fe 100644
--- a/include/elf/common.h
+++ b/include/elf/common.h
@@ -682,6 +682,7 @@
#define GNU_BUILD_ATTRIBUTE_TOOL 5
#define GNU_BUILD_ATTRIBUTE_ABI 6
#define GNU_BUILD_ATTRIBUTE_PIC 7
+#define GNU_BUILD_ATTRIBUTE_SHORT_ENUM 8
#define NOTE_GNU_PROPERTY_SECTION_NAME ".note.gnu.property"
#define GNU_BUILD_ATTRS_SECTION_NAME ".gnu.build.attributes"