mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-18 16:53:50 +08:00
* readelf.c (get_sparc64_dynamic_type): New function.
(get_dynamic_type): Use it.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
1999-08-26 Jakub Jelinek <jj@ultra.linux.cz>
|
||||||
|
|
||||||
|
* readelf.c (get_sparc64_dynamic_type): New function.
|
||||||
|
(get_dynamic_type): Use it.
|
||||||
|
|
||||||
1999-08-26 Jim Wilson <wilson@cygnus.com>
|
1999-08-26 Jim Wilson <wilson@cygnus.com>
|
||||||
|
|
||||||
* readelf.c (display_debug_lines, case default): Change second line
|
* readelf.c (display_debug_lines, case default): Change second line
|
||||||
|
@ -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_little_endian PARAMS ((unsigned char *, int));
|
||||||
static bfd_vma byte_get_big_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_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 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 int dump_relocations PARAMS ((FILE *, unsigned long, unsigned long, Elf_Internal_Sym *, unsigned long, char *, int));
|
||||||
static char * get_file_type PARAMS ((unsigned));
|
static char * get_file_type PARAMS ((unsigned));
|
||||||
@ -840,6 +841,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 *
|
static const char *
|
||||||
get_dynamic_type (type)
|
get_dynamic_type (type)
|
||||||
unsigned long type;
|
unsigned long type;
|
||||||
@ -914,6 +927,9 @@ get_dynamic_type (type)
|
|||||||
case EM_MIPS_RS4_BE:
|
case EM_MIPS_RS4_BE:
|
||||||
result = get_mips_dynamic_type (type);
|
result = get_mips_dynamic_type (type);
|
||||||
break;
|
break;
|
||||||
|
case EM_SPARCV9:
|
||||||
|
result = get_sparc64_dynamic_type (type);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
result = NULL;
|
result = NULL;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user