diff options
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/readelf.c | 16 |
2 files changed, 21 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 71936e2..eea10a2 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2004-10-01 Paul Brook <paul@codesourcery.com> + + * readelf.c (get_arm_section_type_name): New function. + (get_section_type_name): Use it. + 2004-09-28 Nick Clifton <nickc@redhat.com> * nm.c: Reorder functions to eliminate most of the static function 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; |