[PATCH 1/2] Support new 'h' core note item format for hidden fields

Petr Machata pmachata at redhat.com
Thu Nov 14 00:05:19 UTC 2013


Signed-off-by: Petr Machata <pmachata at redhat.com>
---
 src/ChangeLog |    5 +++++
 src/readelf.c |    3 +++
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/ChangeLog b/src/ChangeLog
index 51a5bd5..3beacd7 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2013-11-14  Petr Machata  <pmachata at redhat.com>
+
+	* readelf.c (handle_core_item) <'h'>: New branch for handling
+	fields that shouldn't be displayed.
+
 2013-11-10  Mark Wielaard  <mjw at redhat.com>
 
 	* stack.c: Use ARGP_PROGRAM_VERSION_HOOK_DEF and
diff --git a/src/readelf.c b/src/readelf.c
index ac2f2b0..7ed9f4a 100644
--- a/src/readelf.c
+++ b/src/readelf.c
@@ -8169,6 +8169,9 @@ handle_core_item (Elf *core, const Ebl_Core_Item *item, const void *desc,
       colno = WRAP_COLUMN;
       break;
 
+    case 'h':
+      break;
+
     default:
       error (0, 0, "XXX not handling format '%c' for %s",
 	     item->format, item->name);
-- 
1.7.6.5



More information about the elfutils-devel mailing list