aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>1999-08-26 18:25:20 +0000
committerRichard Henderson <rth@redhat.com>1999-08-26 18:25:20 +0000
commit9a097730233083c99da5bf51aa52e43d64c73f09 (patch)
tree0932bc493a216edc230ae865a954e3b5c958c6a1 /binutils/readelf.c
parent09a798eacc256a0368dc1e8805372d319cffd9b6 (diff)
downloadbinutils-9a097730233083c99da5bf51aa52e43d64c73f09.zip
binutils-9a097730233083c99da5bf51aa52e43d64c73f09.tar.gz
binutils-9a097730233083c99da5bf51aa52e43d64c73f09.tar.bz2
* readelf.c (get_sparc64_dynamic_type): New function.
(get_dynamic_type): Use it.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 6b189b4..11171d4 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -129,6 +129,7 @@ static bfd_vma (* byte_get) PARAMS ((unsigned char *,
static bfd_vma byte_get_little_endian PARAMS ((unsigned char *, int));
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_dynamic_type PARAMS ((unsigned long));
static int dump_relocations PARAMS ((FILE *, unsigned long, unsigned long, Elf_Internal_Sym *, unsigned long, char *, int));
static char * get_file_type PARAMS ((unsigned));
@@ -841,6 +842,18 @@ get_mips_dynamic_type (type)
}
static const char *
+get_sparc64_dynamic_type (type)
+ unsigned long type;
+{
+ switch (type)
+ {
+ case DT_SPARC_REGISTER: return "SPARC_REGISTER";
+ default:
+ return NULL;
+ }
+}
+
+static const char *
get_dynamic_type (type)
unsigned long type;
{
@@ -914,6 +927,9 @@ get_dynamic_type (type)
case EM_MIPS_RS4_BE:
result = get_mips_dynamic_type (type);
break;
+ case EM_SPARCV9:
+ result = get_sparc64_dynamic_type (type);
+ break;
default:
result = NULL;
break;