* readelf.c (get_arm_section_type_name): Added support for
authorNick Clifton <nickc@redhat.com>
Mon, 10 Aug 2009 14:56:34 +0000 (14:56 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 10 Aug 2009 14:56:34 +0000 (14:56 +0000)
    new sections headers.

    * arm.h: (SHT_ARM_DEBUGOVERLAY): New define.
    (SHT_ARM_OVERLAYSECTION): New define.

binutils/ChangeLog
binutils/readelf.c
include/elf/ChangeLog
include/elf/arm.h

index 8f61f3eecb514339c7206e95355b7b13971a3118..ff1ff2530b031daab96d8d413af13750f4d20650 100644 (file)
@@ -1,3 +1,8 @@
+2009-08-10  Daniel Gutson  <dgutson@codesourcery.com>
+
+       * readelf.c (get_arm_section_type_name): Added support for
+       new sections headers.
+
 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR binutils/10364
index 9e8f48f4097f6523154fcbebf3b3ed874db3fba7..f9cab0c282f1bbeff95ecf0b63da99fe3ae580f3 100644 (file)
@@ -2726,12 +2726,11 @@ get_arm_section_type_name (unsigned int sh_type)
 {
   switch (sh_type)
     {
-    case SHT_ARM_EXIDX:
-      return "ARM_EXIDX";
-    case SHT_ARM_PREEMPTMAP:
-      return "ARM_PREEMPTMAP";
-    case SHT_ARM_ATTRIBUTES:
-      return "ARM_ATTRIBUTES";
+    case SHT_ARM_EXIDX:           return "ARM_EXIDX";
+    case SHT_ARM_PREEMPTMAP:      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 3ff097a6149e463b0bd6c68e86dba5e6c8d783e8..b7df2acafbe5f5fb6abadb32f71d01dae9e14f4f 100644 (file)
@@ -1,3 +1,8 @@
+2009-08-10  Daniel Gutson  <dgutson@codesourcery.com>
+
+       * arm.h: (SHT_ARM_DEBUGOVERLAY): New define.
+       (SHT_ARM_OVERLAYSECTION): New define.
+
 2006-08-09  Bernd Schmidt  <bernd.schmidt@analog.com>
 
        From Mike Frysinger <michael.frysinger@analog.com>
index ed8a26ee4b902fdf318ee6d37f04cb4ffaedd54f..61328c3c8695b70af4fb9dd37cd81a9617b95b79 100644 (file)
@@ -1,5 +1,5 @@
 /* ARM ELF support for BFD.
-   Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004
+   Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2009
    Free Software Foundation, Inc.
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -41,9 +41,9 @@
 #define PT_ARM_EXIDX (PT_LOPROC + 1)
 
 /* Other constants defined in the ARM ELF spec. version B-01.  */
-#define EF_ARM_SYMSARESORTED 0x04      /* NB conflicts with EF_INTERWORK */
-#define EF_ARM_DYNSYMSUSESEGIDX 0x08   /* NB conflicts with EF_APCS26 */
-#define EF_ARM_MAPSYMSFIRST 0x10       /* NB conflicts with EF_APCS_FLOAT */
+#define EF_ARM_SYMSARESORTED 0x04      /* NB conflicts with EF_INTERWORK */
+#define EF_ARM_DYNSYMSUSESEGIDX 0x08   /* NB conflicts with EF_APCS26 */
+#define EF_ARM_MAPSYMSFIRST 0x10       /* NB conflicts with EF_APCS_FLOAT */
 #define EF_ARM_EABIMASK      0xFF000000
 
 /* Constants defined in AAELF.  */
 #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_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.  */