summaryrefslogtreecommitdiff
path: root/libebl
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-03-30 19:14:59 +0000
committerUlrich Drepper <drepper@redhat.com>2007-03-30 19:14:59 +0000
commitc07fbb3ff74a8c7b4916ff8155060a35f4b08aaa (patch)
treec8a1484501cecd7309fae583e2009c31983c72be /libebl
parent6258e7486eb3eed6e50005946795c5fbf73aa106 (diff)
downloadelfutils-c07fbb3ff74a8c7b4916ff8155060a35f4b08aaa.tar.gz
propagate from branch 'com.redhat.elfutils.roland.pending' (head b584b7056d679db0fc272b47667047d07737ca55)
to branch 'com.redhat.elfutils' (head 5f150a0b2f07e8c60913d4e6ad833ef026ccd26e)
Diffstat (limited to 'libebl')
-rw-r--r--libebl/ChangeLog5
-rw-r--r--libebl/eblcorenote.c25
2 files changed, 21 insertions, 9 deletions
diff --git a/libebl/ChangeLog b/libebl/ChangeLog
index 07f640ed..6465e720 100644
--- a/libebl/ChangeLog
+++ b/libebl/ChangeLog
@@ -1,3 +1,8 @@
+2007-03-10 Roland McGrath <roland@redhat.com>
+
+ * eblcorenote.c (ebl_core_note): For normally-zero types,
+ print in hex if not zero.
+
2007-01-11 Roland McGrath <roland@redhat.com>
* ebl-hooks.h (machine_section_flag_check): New hook.
diff --git a/libebl/eblcorenote.c b/libebl/eblcorenote.c
index d8223d7a..9eb355f8 100644
--- a/libebl/eblcorenote.c
+++ b/libebl/eblcorenote.c
@@ -1,5 +1,5 @@
/* Print contents of core note.
- Copyright (C) 2002, 2004, 2005 Red Hat, Inc.
+ Copyright (C) 2002, 2004, 2005, 2007 Red Hat, Inc.
This file is part of Red Hat elfutils.
Written by Ulrich Drepper <drepper@redhat.com>, 2002.
@@ -173,14 +173,7 @@ ebl_core_note (ebl, name, type, descsz, desc)
switch (atype)
{
- case AT_NULL:
- case AT_IGNORE:
- case AT_IGNOREPPC:
- case AT_NOTELF:
- default:
- printf (" %s\n", at);
- break;
-
+ /* Decimal. */
case AT_EXECFD:
case AT_PHENT:
case AT_PHNUM:
@@ -202,6 +195,20 @@ ebl_core_note (ebl, name, type, descsz, desc)
printf (" %s: %jd\n", at, val);
break;
+ /* Normally zero. */
+ case AT_NULL:
+ case AT_IGNORE:
+ case AT_IGNOREPPC:
+ case AT_NOTELF:
+ default:
+ if (val == 0)
+ {
+ printf (" %s\n", at);
+ break;
+ }
+ /* Fall through. */
+
+ /* Hex. */
case AT_PHDR:
case AT_BASE:
case AT_FLAGS: /* XXX Print flags? */