aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-10-01 12:59:42 +0000
committerNick Clifton <nickc@redhat.com>2004-10-01 12:59:42 +0000
commit40a18ebd3ae910042b4d7bf053a41c247db7cbc1 (patch)
treecd1e24028a8d52668bd1579632901934575f3d52 /binutils/readelf.c
parent14127cc4f2b98a818bef55c977eb3ea11b0ba5ce (diff)
downloadgdb-40a18ebd3ae910042b4d7bf053a41c247db7cbc1.zip
gdb-40a18ebd3ae910042b4d7bf053a41c247db7cbc1.tar.gz
gdb-40a18ebd3ae910042b4d7bf053a41c247db7cbc1.tar.bz2
The patch below adds binutils support for the SHT_ARM_EXIDX, as defined by
the ARM EABI.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index d0569c4..b35ddfe 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -2404,6 +2404,19 @@ get_ia64_section_type_name (unsigned int sh_type)
}
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)
{
static char buff[32];
@@ -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;