From 40a18ebd3ae910042b4d7bf053a41c247db7cbc1 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 1 Oct 2004 12:59:42 +0000 Subject: The patch below adds binutils support for the SHT_ARM_EXIDX, as defined by the ARM EABI. --- binutils/ChangeLog | 5 +++++ binutils/readelf.c | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) (limited to 'binutils') 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 + + * readelf.c (get_arm_section_type_name): New function. + (get_section_type_name): Use it. + 2004-09-28 Nick Clifton * 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; -- cgit v1.1