* readelf.c (get_alpha_dynamic_type): New.

(get_dynamic_type): Call it.
This commit is contained in:
Richard Henderson 2005-05-29 23:18:51 +00:00
parent 484124bb04
commit fabcb3612f
2 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-05-29 Richard Henderson <rth@redhat.com>
* readelf.c (get_alpha_dynamic_type): New.
(get_dynamic_type): Call it.
2005-05-24 H.J. Lu <hongjiu.lu@intel.com> 2005-05-24 H.J. Lu <hongjiu.lu@intel.com>
* readelf.c (process_section_groups): Report group section * readelf.c (process_section_groups): Report group section

View File

@ -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 * static const char *
get_dynamic_type (unsigned long type) get_dynamic_type (unsigned long type)
{ {
@ -1572,6 +1583,9 @@ get_dynamic_type (unsigned long type)
case EM_IA_64: case EM_IA_64:
result = get_ia64_dynamic_type (type); result = get_ia64_dynamic_type (type);
break; break;
case EM_ALPHA:
result = get_alpha_dynamic_type (type);
break;
default: default:
result = NULL; result = NULL;
break; break;