diff options
author | Thiemo Seufer <ths@networkno.de> | 2006-07-25 09:17:57 +0000 |
---|---|---|
committer | Thiemo Seufer <ths@networkno.de> | 2006-07-25 09:17:57 +0000 |
commit | 2907b861849de3634d492b996ebdf616cd4b7ed2 (patch) | |
tree | 7742554ea2e7fed96e8426c7db865337689dcec3 | |
parent | c000e2621b35acc091086e4d0185453011cb7adb (diff) | |
download | gdb-2907b861849de3634d492b996ebdf616cd4b7ed2.zip gdb-2907b861849de3634d492b996ebdf616cd4b7ed2.tar.gz gdb-2907b861849de3634d492b996ebdf616cd4b7ed2.tar.bz2 |
* elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Allow
linking of objects for compatible machine types.
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elfxx-mips.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f23d35b..3d76b52 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,10 @@ 2006-07-25 Thiemo Seufer <ths@networkno.de> + * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Allow + linking of objects for compatible machine types. + +2006-07-25 Thiemo Seufer <ths@networkno.de> + * elfxx-mips.c (mips_elf_next_relocation): Tighten check to test also for same symbol. diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index 5a65d42..5239938 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))) |