svn commit: r358713 - head/contrib/elftoolchain/readelf
Ed Maste
emaste at FreeBSD.org
Fri Mar 6 17:24:52 UTC 2020
Author: emaste
Date: Fri Mar 6 17:24:51 2020
New Revision: 358713
URL: https://svnweb.freebsd.org/changeset/base/358713
Log:
readelf: print GNU Build-ID
Sponsored by: The FreeBSD Foundation
Modified:
head/contrib/elftoolchain/readelf/readelf.c
Modified: head/contrib/elftoolchain/readelf/readelf.c
==============================================================================
--- head/contrib/elftoolchain/readelf/readelf.c Fri Mar 6 17:11:29 2020 (r358712)
+++ head/contrib/elftoolchain/readelf/readelf.c Fri Mar 6 17:24:51 2020 (r358713)
@@ -3742,6 +3742,12 @@ dump_notes_data(struct readelf *re, const char *name,
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) {
More information about the svn-src-head
mailing list