aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2005-05-29 23:18:51 +0000
committerRichard Henderson <rth@redhat.com>2005-05-29 23:18:51 +0000
commitfabcb3612f68c157b7723d5b5b5add40742da7a2 (patch)
tree5630932ccc6b113c886ec5a519ac4cd51275d93c /binutils/readelf.c
parent484124bb0480c8bc24c8a843fcb23adf1b39fee1 (diff)
downloadgdb-fabcb3612f68c157b7723d5b5b5add40742da7a2.zip
gdb-fabcb3612f68c157b7723d5b5b5add40742da7a2.tar.gz
gdb-fabcb3612f68c157b7723d5b5b5add40742da7a2.tar.bz2
* readelf.c (get_alpha_dynamic_type): New.
(get_dynamic_type): Call it.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index ab0243e..0523d55 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -1471,6 +1471,17 @@ get_ia64_dynamic_type (unsigned long type)
}
static const char *
+get_alpha_dynamic_type (unsigned long type)
+{
+ switch (type)
+ {
+ case DT_ALPHA_PLTRO: return "ALPHA_PLTRO";
+ default:
+ return NULL;
+ }
+}
+
+static const char *
get_dynamic_type (unsigned long type)
{
static char buff[64];
@@ -1572,6 +1583,9 @@ get_dynamic_type (unsigned long type)
case EM_IA_64:
result = get_ia64_dynamic_type (type);
break;
+ case EM_ALPHA:
+ result = get_alpha_dynamic_type (type);
+ break;
default:
result = NULL;
break;