diff options
author | Alan Modra <amodra@gmail.com> | 2005-05-11 14:10:59 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2005-05-11 14:10:59 +0000 |
commit | 7490d522be7671fe9dd4d69db26dd3cf04ef41df (patch) | |
tree | 3f1bbf338ad48427a33a25996d5bf8e55d48db1b /binutils/readelf.c | |
parent | 3c9d25f4597d5d856e6bcde889203774e82550f8 (diff) | |
download | gdb-7490d522be7671fe9dd4d69db26dd3cf04ef41df.zip gdb-7490d522be7671fe9dd4d69db26dd3cf04ef41df.tar.gz gdb-7490d522be7671fe9dd4d69db26dd3cf04ef41df.tar.bz2 |
* readelf.c (get_ppc_dynamic_type): New function for DT_PPC_GLINK.
(get_dynamic_type): Call the above.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index 715b830..9b83f08 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -1413,6 +1413,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) { switch (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; |