diff options
author | Nick Clifton <nickc@redhat.com> | 2001-02-10 00:58:38 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-02-10 00:58:38 +0000 |
commit | a85d7ed0f0b65504f7d8027319d1a4a9adb9d8c1 (patch) | |
tree | d46823b360b1d614fb1c65de41cdc778a68984ff /binutils/readelf.c | |
parent | 356d255deb0cb49d4dade90addbb7bdcde0d7e36 (diff) | |
download | gdb-a85d7ed0f0b65504f7d8027319d1a4a9adb9d8c1.zip gdb-a85d7ed0f0b65504f7d8027319d1a4a9adb9d8c1.tar.gz gdb-a85d7ed0f0b65504f7d8027319d1a4a9adb9d8c1.tar.bz2 |
Add s390 support
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index cb346f6..ac0c09a 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -74,6 +74,7 @@ #include "elf/cris.h" #include "elf/i860.h" #include "elf/x86-64.h" +#include "elf/s390.h" #include "bucomm.h" #include "getopt.h" @@ -583,6 +584,7 @@ guess_is_rela (e_machine) case EM_CRIS: case EM_860: case EM_X86_64: + case EM_S390: return TRUE; case EM_MMA: @@ -938,6 +940,10 @@ dump_relocations (file, rel_offset, rel_size, symtab, nsyms, strtab, is_rela) case EM_X86_64: rtype = elf_x86_64_reloc_type (type); break; + + case EM_S390: + rtype = elf_s390_reloc_type (type); + break; } if (rtype == NULL) @@ -1315,6 +1321,7 @@ get_machine_name (e_machine) 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"; + case EM_S390: return "IBM S/390"; default: sprintf (buff, _("<unknown>: %x"), e_machine); return buff; |