From: Thiemo Seufer Date: Tue, 25 Jul 2006 09:17:57 +0000 (+0000) Subject: * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Allow X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2907b861849de3634d492b996ebdf616cd4b7ed2;p=binutils-gdb.git * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Allow linking of objects for compatible machine types. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f23d35b85eb..3d76b52d5d5 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2006-07-25 Thiemo Seufer + + * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Allow + linking of objects for compatible machine types. + 2006-07-25 Thiemo Seufer * elfxx-mips.c (mips_elf_next_relocation): Tighten check to test diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index 5a65d42461e..5239938822a 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -10854,7 +10854,9 @@ _bfd_mips_elf_merge_private_bfd_data (bfd *ibfd, bfd *obfd) = elf_elfheader (ibfd)->e_ident[EI_CLASS]; if (bfd_get_arch (obfd) == bfd_get_arch (ibfd) - && bfd_get_arch_info (obfd)->the_default) + && (bfd_get_arch_info (obfd)->the_default + || mips_mach_extends_p (bfd_get_mach (obfd), + bfd_get_mach (ibfd)))) { if (! bfd_set_arch_mach (obfd, bfd_get_arch (ibfd), bfd_get_mach (ibfd)))