]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - binutils/readelf.c
The patch below adds binutils support for the SHT_ARM_EXIDX, as defined by
[thirdparty/binutils-gdb.git] / binutils / readelf.c
index d0569c4fb909a61ed76026396251a827139534b2..b35ddfe30508dc137ac70276015a02840d812f1a 100644 (file)
@@ -2403,6 +2403,19 @@ get_ia64_section_type_name (unsigned int sh_type)
   return NULL;
 }
 
+static const char *
+get_arm_section_type_name (unsigned int sh_type)
+{
+  switch (sh_type)
+    {
+    case SHT_ARM_EXIDX:
+      return "ARM_EXIDX";
+    default:
+      break;
+    }
+  return NULL;
+}
+
 static const char *
 get_section_type_name (unsigned int sh_type)
 {
@@ -2453,6 +2466,9 @@ get_section_type_name (unsigned int sh_type)
            case EM_IA_64:
              result = get_ia64_section_type_name (sh_type);
              break;
+           case EM_ARM:
+             result = get_arm_section_type_name (sh_type);
+             break;
            default:
              result = NULL;
              break;