mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-14 20:37:06 +00:00
readelf: print GNU Build-ID
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
fc7efa1b6a
commit
6c37d6032e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=358713
|
@ -3742,6 +3742,12 @@ dump_notes_data(struct readelf *re, const char *name, uint32_t type,
|
|||
case NT_GNU_PROPERTY_TYPE_0:
|
||||
dump_gnu_property_type_0(re, buf, sz);
|
||||
return;
|
||||
case NT_GNU_BUILD_ID:
|
||||
printf(" Build ID: ");
|
||||
for (i = 0; i < sz; i++)
|
||||
printf("%02x", (unsigned char)buf[i]);
|
||||
printf("\n");
|
||||
return;
|
||||
}
|
||||
} else if (strcmp(name, "Xen") == 0) {
|
||||
switch (type) {
|
||||
|
|
Loading…
Reference in a new issue