aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-01-16 05:53:08 +0000
committerAlan Modra <amodra@gmail.com>2002-01-16 05:53:08 +0000
commitf1cb7e172842a85da453fdb36545298946e89336 (patch)
tree9795f2c226ffb60a10c2cc9c82e6fe8a7547f2e3
parent1f808cd5d7423d498fa6197317af6a919f8c9e95 (diff)
downloadgdb-f1cb7e172842a85da453fdb36545298946e89336.zip
gdb-f1cb7e172842a85da453fdb36545298946e89336.tar.gz
gdb-f1cb7e172842a85da453fdb36545298946e89336.tar.bz2
* readelf.c (get_ppc64_dynamic_type): New.
(get_dynamic_type): Call it.
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/readelf.c16
2 files changed, 21 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 6308809..7494da9 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2002-01-16 Alan Modra <amodra@bigpond.net.au>
+
+ * readelf.c (get_ppc64_dynamic_type): New.
+ (get_dynamic_type): Call it.
+
2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
* objcopy.c (copy_usage): Use "switches" instead of "options".
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 7ac891f..c8a517f 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -159,6 +159,7 @@ static bfd_vma byte_get_little_endian PARAMS ((unsigned char *,
static bfd_vma byte_get_big_endian PARAMS ((unsigned char *, int));
static const char * get_mips_dynamic_type PARAMS ((unsigned long));
static const char * get_sparc64_dynamic_type PARAMS ((unsigned long));
+static const char * get_ppc64_dynamic_type PARAMS ((unsigned long));
static const char * get_parisc_dynamic_type PARAMS ((unsigned long));
static const char * get_dynamic_type PARAMS ((unsigned long));
static int slurp_rela_relocs PARAMS ((FILE *, unsigned long, unsigned long, Elf_Internal_Rela **, unsigned long *));
@@ -1177,6 +1178,18 @@ get_sparc64_dynamic_type (type)
}
static const char *
+get_ppc64_dynamic_type (type)
+ unsigned long type;
+{
+ switch (type)
+ {
+ case DT_PPC64_GLINK: return "PPC64_GLINK";
+ default:
+ return NULL;
+ }
+}
+
+static const char *
get_parisc_dynamic_type (type)
unsigned long type;
{
@@ -1288,6 +1301,9 @@ get_dynamic_type (type)
case EM_SPARCV9:
result = get_sparc64_dynamic_type (type);
break;
+ case EM_PPC64:
+ result = get_ppc64_dynamic_type (type);
+ break;
default:
result = NULL;
break;