aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mips-elf
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2002-07-26 18:56:25 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2002-07-26 18:56:25 +0000
commitfb39dac1ef45db850a7647f4bf1da52ee5900543 (patch)
treeb92922e90b25ac2c8212ac41cba70f20a2ff24c6 /ld/testsuite/ld-mips-elf
parent7dcd22c2769e452b30edfadba3d98e93ec99aedd (diff)
downloadfsf-binutils-gdb-fb39dac1ef45db850a7647f4bf1da52ee5900543.zip
fsf-binutils-gdb-fb39dac1ef45db850a7647f4bf1da52ee5900543.tar.gz
fsf-binutils-gdb-fb39dac1ef45db850a7647f4bf1da52ee5900543.tar.bz2
[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.
Diffstat (limited to 'ld/testsuite/ld-mips-elf')
-rw-r--r--ld/testsuite/ld-mips-elf/mips-elf.exp2
-rw-r--r--ld/testsuite/ld-mips-elf/mips16-1.d5
-rw-r--r--ld/testsuite/ld-mips-elf/mips16-1a.s2
-rw-r--r--ld/testsuite/ld-mips-elf/mips16-1b.s2
4 files changed, 11 insertions, 0 deletions
diff --git a/ld/testsuite/ld-mips-elf/mips-elf.exp b/ld/testsuite/ld-mips-elf/mips-elf.exp
index 798cb79..03f4e32 100644
--- a/ld/testsuite/ld-mips-elf/mips-elf.exp
+++ b/ld/testsuite/ld-mips-elf/mips-elf.exp
@@ -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"
}
}
diff --git a/ld/testsuite/ld-mips-elf/mips16-1.d b/ld/testsuite/ld-mips-elf/mips16-1.d
new file mode 100644
index 0000000..2b99668
--- /dev/null
+++ b/ld/testsuite/ld-mips-elf/mips16-1.d
@@ -0,0 +1,5 @@
+#source: mips16-1a.s -no-mips16
+#source: mips16-1b.s -mips16
+#ld: -r
+#objdump: -d
+#pass
diff --git a/ld/testsuite/ld-mips-elf/mips16-1a.s b/ld/testsuite/ld-mips-elf/mips16-1a.s
new file mode 100644
index 0000000..a361a65
--- /dev/null
+++ b/ld/testsuite/ld-mips-elf/mips16-1a.s
@@ -0,0 +1,2 @@
+ .text
+foo1: jr $31
diff --git a/ld/testsuite/ld-mips-elf/mips16-1b.s b/ld/testsuite/ld-mips-elf/mips16-1b.s
new file mode 100644
index 0000000..11e36f7
--- /dev/null
+++ b/ld/testsuite/ld-mips-elf/mips16-1b.s
@@ -0,0 +1,2 @@
+ .text
+foo2: jr $31