summaryrefslogtreecommitdiff
path: root/libebl
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2007-07-16 22:23:37 +0000
committerRoland McGrath <roland@redhat.com>2007-07-16 22:23:37 +0000
commit87d4780beb37f265fa89ffd909e77513ef516180 (patch)
tree5d74ec3564099ce0370bff12595cac95644e2fe1 /libebl
parent55d34a5ac854be02fa10186182bc22685923c703 (diff)
downloadelfutils-87d4780beb37f265fa89ffd909e77513ef516180.tar.gz
libdwfl/
2007-07-16 Roland McGrath <roland@redhat.com> * dwfl_module.c (dwfl_report_module): Increment DWFL->nmodules when reviving an existing module. tests/ 2007-07-16 Roland McGrath <roland@redhat.com> * dwfl-bug-report.c: New file. * Makefile.am (noinst_PROGRAMS, TESTS): Add it. (dwfl_bug_report_LDADD): New variable.
Diffstat (limited to 'libebl')
-rw-r--r--libebl/ChangeLog7
-rw-r--r--libebl/eblobjnote.c13
-rw-r--r--libebl/eblobjnotetypename.c4
3 files changed, 22 insertions, 2 deletions
diff --git a/libebl/ChangeLog b/libebl/ChangeLog
index cda50af4..a48f8e33 100644
--- a/libebl/ChangeLog
+++ b/libebl/ChangeLog
@@ -1,3 +1,10 @@
+2007-07-09 Roland McGrath <roland@redhat.com>
+
+ * eblobjnotetypename.c (ebl_object_note_type_name): Handle
+ NT_GNU_HWCAP, NT_GNU_BUILD_ID.
+
+ * eblobjnote.c (ebl_object_note): Handle NT_GNU_BUILD_ID.
+
2007-04-22 Roland McGrath <roland@redhat.com>
* eblcorenotetypename.c (ebl_core_note_type_name): Handle NT_PRXFPREG.
diff --git a/libebl/eblobjnote.c b/libebl/eblobjnote.c
index d4b6e1f4..747fb8e7 100644
--- a/libebl/eblobjnote.c
+++ b/libebl/eblobjnote.c
@@ -1,5 +1,5 @@
/* Print contents of object file note.
- Copyright (C) 2002 Red Hat, Inc.
+ Copyright (C) 2002, 2007 Red Hat, Inc.
This file is part of Red Hat elfutils.
Written by Ulrich Drepper <drepper@redhat.com>, 2002.
@@ -70,6 +70,17 @@ ebl_object_note (ebl, name, type, descsz, desc)
/* The machine specific function did not know this type. */
switch (type)
{
+ case NT_GNU_BUILD_ID:
+ if (strcmp (name, "GNU") == 0 && descsz > 0)
+ {
+ printf (gettext (" Build ID: "));
+ uint_fast32_t i;
+ for (i = 0; i < descsz - 1; ++i)
+ printf ("%02" PRIx8, (uint8_t) desc[i]);
+ printf ("%02" PRIx8 "\n", (uint8_t) desc[i]);
+ }
+ break;
+
case NT_VERSION:
if (strcmp (name, "GNU") == 0 && descsz >= 8)
{
diff --git a/libebl/eblobjnotetypename.c b/libebl/eblobjnotetypename.c
index 6bf90596..ff9330f9 100644
--- a/libebl/eblobjnotetypename.c
+++ b/libebl/eblobjnotetypename.c
@@ -1,5 +1,5 @@
/* Return note type name.
- Copyright (C) 2002 Red Hat, Inc.
+ Copyright (C) 2002, 2007 Red Hat, Inc.
This file is part of Red Hat elfutils.
Written by Ulrich Drepper <drepper@redhat.com>, 2002.
@@ -72,6 +72,8 @@ ebl_object_note_type_name (ebl, type, buf, len)
{
#define KNOWNSTYPE(name) [NT_##name] = #name
KNOWNSTYPE (VERSION),
+ KNOWNSTYPE (GNU_HWCAP),
+ KNOWNSTYPE (GNU_BUILD_ID),
};
/* Handle standard names. */