aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2014-02-05 10:29:24 -0800
committerCary Coutant <ccoutant@google.com>2014-02-06 08:38:03 -0800
commit926c538512b17e87d94ea193d7dd10e012347ff0 (patch)
treee00a9f141be87e13a96bcfdc4ec26ba0709060e1 /binutils
parent62a0f7233525099a718f61eca2ea7d89a8cad6f7 (diff)
downloadgdb-926c538512b17e87d94ea193d7dd10e012347ff0.zip
gdb-926c538512b17e87d94ea193d7dd10e012347ff0.tar.gz
gdb-926c538512b17e87d94ea193d7dd10e012347ff0.tar.bz2
Add readelf support for dumping gold version note sections.
binutils/ PR binutils/16444 * readelf.c (print_gnu_note): Add support for NT_GNU_GOLD_VERSION.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/readelf.c11
2 files changed, 16 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 6f107e1..6758413 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2014-02-06 Cary Coutant <ccoutant@google.com>
+
+ PR binutils/16444
+ * readelf.c (print_gnu_note): Add support for NT_GNU_GOLD_VERSION.
+
2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
* version.c (print_version): Update copyright year to 2014.
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 7d228d6..453aeb7 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -13576,6 +13576,17 @@ print_gnu_note (Elf_Internal_Note *pnote)
major, minor, subminor);
}
break;
+
+ case NT_GNU_GOLD_VERSION:
+ {
+ unsigned long i;
+
+ printf (_(" Version: "));
+ for (i = 0; i < pnote->descsz && pnote->descdata[i] != '\0'; ++i)
+ printf ("%c", pnote->descdata[i]);
+ printf ("\n");
+ }
+ break;
}
return 1;