From fabcb3612f68c157b7723d5b5b5add40742da7a2 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sun, 29 May 2005 23:18:51 +0000 Subject: [PATCH] * readelf.c (get_alpha_dynamic_type): New. (get_dynamic_type): Call it. --- binutils/ChangeLog | 5 +++++ binutils/readelf.c | 14 ++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index e72be0b7557..97139f99288 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2005-05-29 Richard Henderson + + * readelf.c (get_alpha_dynamic_type): New. + (get_dynamic_type): Call it. + 2005-05-24 H.J. Lu * readelf.c (process_section_groups): Report group section diff --git a/binutils/readelf.c b/binutils/readelf.c index ab0243edb1d..0523d5531e2 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -1470,6 +1470,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) { @@ -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; -- 2.30.2