diff options
author | Doug Evans <dje@google.com> | 1999-10-05 00:54:12 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 1999-10-05 00:54:12 +0000 |
commit | e916b64e85c4877eab99164842c70d708c41cb6c (patch) | |
tree | 79f93ee7ec34e29c9294a35d9aa68c2b7ea45d2a /bfd/elf32-m32r.c | |
parent | 44ce095e1de1eb4f290bfbb0cbc0b747c05ee7a7 (diff) | |
download | gdb-e916b64e85c4877eab99164842c70d708c41cb6c.zip gdb-e916b64e85c4877eab99164842c70d708c41cb6c.tar.gz gdb-e916b64e85c4877eab99164842c70d708c41cb6c.tar.bz2 |
* cpu-m32r.c (arch_info_struct): New static global.
(bfd_m32r_arch): Refer to it.
* elf32-m32r.c (m32r_elf_object_p): Recognize E_M32RX_ARCH.
(m32r_elf_print_private_bfd_data): Ditto.
(m32r_elf_final_write_processing): Handle bfd_mach_m32rx.
Diffstat (limited to 'bfd/elf32-m32r.c')
-rw-r--r-- | bfd/elf32-m32r.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bfd/elf32-m32r.c b/bfd/elf32-m32r.c index f6ce3f0..e9ce55b 100644 --- a/bfd/elf32-m32r.c +++ b/bfd/elf32-m32r.c @@ -1793,6 +1793,7 @@ m32r_elf_object_p (abfd) { default: case E_M32R_ARCH: (void) bfd_default_set_arch_mach (abfd, bfd_arch_m32r, bfd_mach_m32r); break; + case E_M32RX_ARCH: (void) bfd_default_set_arch_mach (abfd, bfd_arch_m32r, bfd_mach_m32rx); break; } return true; } @@ -1809,6 +1810,7 @@ m32r_elf_final_write_processing (abfd, linker) { default: case bfd_mach_m32r: val = E_M32R_ARCH; break; + case bfd_mach_m32rx: val = E_M32RX_ARCH; break; } elf_elfheader (abfd)->e_flags &=~ EF_M32R_ARCH; @@ -1926,6 +1928,7 @@ m32r_elf_print_private_bfd_data (abfd, ptr) { default: case E_M32R_ARCH: fprintf (file, _(": m32r instructions")); break; + case E_M32RX_ARCH: fprintf (file, _(": m32rx instructions")); break; } fputc ('\n', file); @@ -2052,7 +2055,7 @@ m32r_elf_check_relocs (abfd, info, sec, relocs) #define ELF_ARCH bfd_arch_m32r #define ELF_MACHINE_CODE EM_CYGNUS_M32R -#define ELF_MAXPAGESIZE 0x1 /* Explicitly requested by Mitsubishi */ +#define ELF_MAXPAGESIZE 0x1 /* Explicitly requested by Mitsubishi. */ #define TARGET_BIG_SYM bfd_elf32_m32r_vec #define TARGET_BIG_NAME "elf32-m32r" |