]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Add support for a GNU BUILD note type to record the enum size.
authorNick Clifton <nickc@redhat.com>
Thu, 16 Mar 2017 16:44:55 +0000 (16:44 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 16 Mar 2017 16:44:55 +0000 (16:44 +0000)
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.

binutils/ChangeLog
binutils/readelf.c
include/ChangeLog
include/elf/common.h

index f9fb74689f17b6df2f077fb94c60e89612288cc0..60847160d6b4eb05081a6bfac6bc9e828cb8f1a8 100644 (file)
@@ -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
index 34781ae86636c84186847aa4e1163554e4d6c7e6..5738fe59e210cb95209706de25fe2b90c692be43 100644 (file)
@@ -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))
index a329eb0c2c5a8a18edd93af179f8d296cb9d46a2..eacfeb9ac95c55fc1501b0bc4e45da0efda64a49 100644 (file)
@@ -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
index 8888a556132b35816d2a76ced79f480380eba9b2..65877fe4a414ef53a4f51cfd323b069b03e93faa 100644 (file)
 #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"