diff options
author | Jeff Law <law@redhat.com> | 1996-10-03 03:56:20 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1996-10-03 03:56:20 +0000 |
commit | efc2b0646361ecf67e838c7467e32026fd676f82 (patch) | |
tree | c9e7348cc99fe1d0f8a66b27445e176fdbb72a30 /bfd/elf.c | |
parent | 3072af43b04914bb9fe9c6d269d0be6d4161679a (diff) | |
download | gdb-efc2b0646361ecf67e838c7467e32026fd676f82.zip gdb-efc2b0646361ecf67e838c7467e32026fd676f82.tar.gz gdb-efc2b0646361ecf67e838c7467e32026fd676f82.tar.bz2 |
* cpu-mn10x00.c, elf32-mn10x00.c: New files.
* Makefile.in (ALL_MACHINES): Add cpu-mn10x00.o.
(BFD32_BACKENDS): Similarly for elf32-mn10x00.o.
(elf32-mn10x00.o): Add dependencies.
* archures.c (enum bfd_architecture): Add bfd_arch_mn10x00.
(bfd_mn10x00_arch): Declare.
(bfd_archures_list): Add bfd_mn10x00_arch.
* config.bfd: Add mn10x00-*-*.
* configure.in: Add bfd_elf32_mn10x00_vec.
* elf.c (prep_headers): Handle bfd_arch_mn10x00.
* targets.c (bfd_elf32_mn10x00_vec): Declare.
(bfd_target_vector): Add bfd_elf32_mn10x00_vec.
* bfd-in2.h, configure: Rebuilt.
Stubbing out Matsushita support.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -2525,6 +2525,9 @@ prep_headers (abfd) i_ehdrp->e_machine = EM_CYGNUS_M32R; break; /* end-sanitize-m32r */ + case bfd_arch_mn10x00: + i_ehdrp->e_machine = EM_CYGNUS_MN10x00; + break; /* also note that EM_M32, AT&T WE32100 is unknown to bfd */ default: i_ehdrp->e_machine = EM_NONE; @@ -2930,6 +2933,10 @@ _bfd_elf_copy_private_symbol_data (ibfd, isymarg, obfd, osymarg) { elf_symbol_type *isym, *osym; + if (bfd_get_flavour (ibfd) != bfd_target_elf_flavour + || bfd_get_flavour (obfd) != bfd_target_elf_flavour) + return true; + isym = elf_symbol_from (ibfd, isymarg); osym = elf_symbol_from (obfd, osymarg); |