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:
Cary Coutant 2014-02-05 10:29:24 -08:00
parent 62a0f72335
commit 926c538512
2 changed files with 16 additions and 0 deletions

View File

@ -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.

View File

@ -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;