This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] ARM_DEBUGOVERLAY and ARM_OVERLAYSECTION for readelf
- From: Daniel Gutson <dgutson at codesourcery dot com>
- To: binutils at sourceware dot org
- Date: Fri, 17 Jul 2009 18:32:07 -0300
- Subject: [PATCH] ARM_DEBUGOVERLAY and ARM_OVERLAYSECTION for readelf
Hi,
the attached patch for readelf adds support to recognize ARM_DEBUGOVERLAY and ARM_OVERLAYSECTION section headers.
Please commit it for me if accepted, since I don't have write access.
Thanks,
Daniel.
---
2009-07-17 Daniel Gutson <dgutson@codesourcery.com>
binutils/
* readelf.c (get_arm_section_type_name): Added support for
new sections headers.
include/elf
* arm.h: (SHT_ARM_DEBUGOVERLAY): New define.
(SHT_ARM_OVERLAYSECTION): New define.
--
Daniel Gutson
CodeSourcery
www.codesourcery.com
Index: binutils/readelf.c
===================================================================
RCS file: /cvs/src/src/binutils/readelf.c,v
retrieving revision 1.449
diff -u -p -r1.449 readelf.c
--- binutils/readelf.c 24 Jun 2009 10:37:34 -0000 1.449
+++ binutils/readelf.c 17 Jul 2009 21:24:29 -0000
@@ -2718,6 +2718,10 @@ get_arm_section_type_name (unsigned int
return "ARM_PREEMPTMAP";
case SHT_ARM_ATTRIBUTES:
return "ARM_ATTRIBUTES";
+ case SHT_ARM_DEBUGOVERLAY:
+ return "ARM_DEBUGOVERLAY";
+ case SHT_ARM_OVERLAYSECTION:
+ return "ARM_OVERLAYSECTION";
default:
break;
}
Index: include/elf/arm.h
===================================================================
RCS file: /cvs/src/src/include/elf/arm.h,v
retrieving revision 1.35
diff -u -p -r1.35 arm.h
--- include/elf/arm.h 15 Jan 2009 18:00:49 -0000 1.35
+++ include/elf/arm.h 17 Jul 2009 21:24:35 -0000
@@ -71,9 +71,14 @@
#define STT_ARM_16BIT STT_HIPROC /* A Thumb label. */
/* Additional section types. */
-#define SHT_ARM_EXIDX 0x70000001 /* Section holds ARM unwind info. */
-#define SHT_ARM_PREEMPTMAP 0x70000002 /* Section pre-emption details. */
-#define SHT_ARM_ATTRIBUTES 0x70000003 /* Section holds attributes. */
+#define SHT_ARM_EXIDX 0x70000001 /* Section holds ARM unwind info. */
+#define SHT_ARM_PREEMPTMAP 0x70000002 /* Section pre-emption details. */
+#define SHT_ARM_ATTRIBUTES 0x70000003 /* Section holds attributes. */
+#define SHT_ARM_EXIDX 0x70000001 /* Section holds ARM unwind info. */
+#define SHT_ARM_PREEMPTMAP 0x70000002 /* Section pre-emption details. */
+#define SHT_ARM_ATTRIBUTES 0x70000003 /* Section holds attributes. */
+#define SHT_ARM_DEBUGOVERLAY 0x70000004 /* Section holds overlay debug info. */
+#define SHT_ARM_OVERLAYSECTION 0x70000005 /* Section holds GDB and overlay integration info. */
/* ARM-specific values for sh_flags. */
#define SHF_ENTRYSECT 0x10000000 /* Section contains an entry point. */