[bfd/]
* elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Merge ASE flags into resulting BFD. [ld/testsuite/] * ld-mips-elf/mips16-1.d, * ld-mips-elf/mips16-1[ab].s: New test. * ld-mips-elf/mips-elf.exp: Run it.
This commit is contained in:
parent
7dcd22c276
commit
fb39dac1ef
@ -1,3 +1,8 @@
|
||||
2002-07-26 Chris Demetriou <cgd@broadcom.com>
|
||||
|
||||
* elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Merge ASE
|
||||
flags into resulting BFD.
|
||||
|
||||
2002-07-26 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
From John Reiser <jreiser@BitWagon.com>
|
||||
|
@ -7803,6 +7803,15 @@ _bfd_mips_elf_merge_private_bfd_data (ibfd, obfd)
|
||||
old_flags &= ~EF_MIPS_ABI;
|
||||
}
|
||||
|
||||
/* For now, allow arbitrary mixing of ASEs (retain the union). */
|
||||
if ((new_flags & EF_MIPS_ARCH_ASE) != (old_flags & EF_MIPS_ARCH_ASE))
|
||||
{
|
||||
elf_elfheader (obfd)->e_flags |= new_flags & EF_MIPS_ARCH_ASE;
|
||||
|
||||
new_flags &= ~ EF_MIPS_ARCH_ASE;
|
||||
old_flags &= ~ EF_MIPS_ARCH_ASE;
|
||||
}
|
||||
|
||||
/* Warn about any other mismatches */
|
||||
if (new_flags != old_flags)
|
||||
{
|
||||
|
@ -1,3 +1,9 @@
|
||||
2002-07-26 Richard Sandiford <rsandifo@redhat.com>
|
||||
|
||||
* ld-mips-elf/mips16-1.d,
|
||||
* ld-mips-elf/mips16-1[ab].s: New test.
|
||||
* ld-mips-elf/mips-elf.exp: Run it.
|
||||
|
||||
2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
|
||||
|
||||
* ld-mmix/sec-1.d: Adjust for changes in padding.
|
||||
|
@ -39,6 +39,8 @@ if { [istarget mips*-*-*] } then {
|
||||
run_dump_test "emrelocs-eb"
|
||||
run_dump_test "emrelocs-el"
|
||||
|
||||
run_dump_test "mips16-1"
|
||||
|
||||
run_dump_test "region1"
|
||||
}
|
||||
}
|
||||
|
5
ld/testsuite/ld-mips-elf/mips16-1.d
Normal file
5
ld/testsuite/ld-mips-elf/mips16-1.d
Normal file
@ -0,0 +1,5 @@
|
||||
#source: mips16-1a.s -no-mips16
|
||||
#source: mips16-1b.s -mips16
|
||||
#ld: -r
|
||||
#objdump: -d
|
||||
#pass
|
2
ld/testsuite/ld-mips-elf/mips16-1a.s
Normal file
2
ld/testsuite/ld-mips-elf/mips16-1a.s
Normal file
@ -0,0 +1,2 @@
|
||||
.text
|
||||
foo1: jr $31
|
2
ld/testsuite/ld-mips-elf/mips16-1b.s
Normal file
2
ld/testsuite/ld-mips-elf/mips16-1b.s
Normal file
@ -0,0 +1,2 @@
|
||||
.text
|
||||
foo2: jr $31
|
Loading…
Reference in New Issue
Block a user