mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-23 12:09:49 +00:00
Add EM_X86_64.
This commit is contained in:
parent
4c15ccf7af
commit
bcedfee6be
@ -1,3 +1,10 @@
|
||||
2000-12-04 Andreas Jaeger <aj@suse.de>
|
||||
|
||||
* readelf.c (guess_is_rela): Add EM_X86_64.
|
||||
(dump_relocations): Add EM_X86_64.
|
||||
(get_machine_name): Add EM_X86_64.
|
||||
Include "elf/x86-64.h".
|
||||
|
||||
2000-12-12 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* readelf.c: Fix formatting.
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -73,6 +73,7 @@
|
||||
#include "elf/ia64.h"
|
||||
#include "elf/cris.h"
|
||||
#include "elf/i860.h"
|
||||
#include "elf/x86-64.h"
|
||||
|
||||
#include "bucomm.h"
|
||||
#include "getopt.h"
|
||||
@ -534,8 +535,8 @@ byte_get_big_endian (field, size)
|
||||
}
|
||||
}
|
||||
|
||||
/* Guess the relocation size commonly used by the specific machines. */
|
||||
|
||||
/* Guess the relocation sized based on the sized commonly used by the specific machine. */
|
||||
static int
|
||||
guess_is_rela (e_machine)
|
||||
unsigned long e_machine;
|
||||
@ -571,6 +572,7 @@ guess_is_rela (e_machine)
|
||||
case EM_AVR:
|
||||
case EM_CRIS:
|
||||
case EM_860:
|
||||
case EM_X86_64:
|
||||
return TRUE;
|
||||
|
||||
case EM_MMA:
|
||||
@ -894,6 +896,10 @@ dump_relocations (file, rel_offset, rel_size, symtab, nsyms, strtab, is_rela)
|
||||
case EM_860:
|
||||
rtype = elf_i860_reloc_type (type);
|
||||
break;
|
||||
|
||||
case EM_X86_64:
|
||||
rtype = elf_x86_64_reloc_type (type);
|
||||
break;
|
||||
}
|
||||
|
||||
if (rtype == NULL)
|
||||
@ -1270,6 +1276,7 @@ get_machine_name (e_machine)
|
||||
case EM_MMIX: return "Donald Knuth's educational 64-bit processor";
|
||||
case EM_HUANY: return "Harvard Universitys's machine-independent object format";
|
||||
case EM_PRISM: return "SiTera Prism";
|
||||
case EM_X86_64: return "Advanced Micro Devices X86-64";
|
||||
default:
|
||||
sprintf (buff, _("<unknown>: %x"), e_machine);
|
||||
return buff;
|
||||
|
Loading…
Reference in New Issue
Block a user