diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2001-09-12 23:53:31 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 2001-09-12 23:53:31 +0000 |
commit | aa4f99bbfde8d1650d61163622544d106c7eeab0 (patch) | |
tree | 3102d6a03d1250044e5b62f7f04e445e4d9679f9 /bfd/elf32-avr.c | |
parent | c265b1cc5da347944503dfd9c765fbc418fcc8f1 (diff) | |
download | gdb-aa4f99bbfde8d1650d61163622544d106c7eeab0.zip gdb-aa4f99bbfde8d1650d61163622544d106c7eeab0.tar.gz gdb-aa4f99bbfde8d1650d61163622544d106c7eeab0.tar.bz2 |
* elf.c (prep_headers): Get the machine code from the elf
backend data.
* elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200.
(ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200.
* elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
(ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
* elf-arc.c (arc_elf_final_write_processing): Don't override
e_machine, it's now properly set in prep_headers.
* elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and
EM_AVR_OLD.
(ELF_MACHINE_ALT1): Define to EM_AVR_OLD.
* elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V.
(ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V.
* elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V.
(ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V.
* elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30.
(ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30.
* elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R.
(ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R.
* elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD.
* elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850.
(ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
Diffstat (limited to 'bfd/elf32-avr.c')
-rw-r--r-- | bfd/elf32-avr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/elf32-avr.c b/bfd/elf32-avr.c index d776e2c..55ea2c6 100644 --- a/bfd/elf32-avr.c +++ b/bfd/elf32-avr.c @@ -914,7 +914,8 @@ elf32_avr_object_p (abfd) bfd *abfd; { int e_set = bfd_mach_avr2; - if (elf_elfheader (abfd)->e_machine == EM_AVR) + if (elf_elfheader (abfd)->e_machine == EM_AVR + || elf_elfheader (abfd)->e_machine == EM_AVR_OLD) { int e_mach = elf_elfheader (abfd)->e_flags & EF_AVR_MACH; switch (e_mach) @@ -947,6 +948,7 @@ elf32_avr_object_p (abfd) #define ELF_ARCH bfd_arch_avr #define ELF_MACHINE_CODE EM_AVR +#define ELF_MACHINE_ALT1 EM_AVR_OLD #define ELF_MAXPAGESIZE 1 #define TARGET_LITTLE_SYM bfd_elf32_avr_vec |