mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
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.
This commit is contained in:
parent
62a0f72335
commit
926c538512
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user