forked from Imagelibrary/binutils-gdb
* readelf.c (get_ppc_dynamic_type): New function for DT_PPC_GLINK.
(get_dynamic_type): Call the above.
This commit is contained in:
@@ -1412,6 +1412,17 @@ get_sparc64_dynamic_type (unsigned long type)
|
||||
}
|
||||
}
|
||||
|
||||
static const char *
|
||||
get_ppc_dynamic_type (unsigned long type)
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case DT_PPC_GLINK: return "PPC_GLINK";
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
static const char *
|
||||
get_ppc64_dynamic_type (unsigned long type)
|
||||
{
|
||||
@@ -1552,6 +1563,9 @@ get_dynamic_type (unsigned long type)
|
||||
case EM_SPARCV9:
|
||||
result = get_sparc64_dynamic_type (type);
|
||||
break;
|
||||
case EM_PPC:
|
||||
result = get_ppc_dynamic_type (type);
|
||||
break;
|
||||
case EM_PPC64:
|
||||
result = get_ppc64_dynamic_type (type);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user