aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2017-03-16 16:44:55 +0000
committerNick Clifton <nickc@redhat.com>2017-03-16 16:44:55 +0000
commita8be5506b626a57f84771c5ddfaefabf2d61c017 (patch)
tree74b670776a7f69f45d5fcef88aa3d6b377c8825e /binutils/readelf.c
parentba14f3792fe007bedd88b62e554c79258adc53d9 (diff)
downloadgdb-a8be5506b626a57f84771c5ddfaefabf2d61c017.zip
gdb-a8be5506b626a57f84771c5ddfaefabf2d61c017.tar.gz
gdb-a8be5506b626a57f84771c5ddfaefabf2d61c017.tar.bz2
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.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c5
1 files changed, 5 insertions, 0 deletions
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))