aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Nemet <anemet@caviumnetworks.com>2007-08-01 17:41:30 +0000
committerAdam Nemet <anemet@caviumnetworks.com>2007-08-01 17:41:30 +0000
commit43ec5bc0d7e868bf8f7950c21597b49090e798d2 (patch)
treeb2f34c441a0e80f6676b9b9970cb71da1ff37ab3
parentbc37fce3d28a92b4c8f2bb83e4c7b2c6242c4616 (diff)
downloadgdb-43ec5bc0d7e868bf8f7950c21597b49090e798d2.zip
gdb-43ec5bc0d7e868bf8f7950c21597b49090e798d2.tar.gz
gdb-43ec5bc0d7e868bf8f7950c21597b49090e798d2.tar.bz2
* ld-mips-elf/reloc-4.s, ld-mips-elf/reloc-4.d,
ld-mips-elf/reloc-5.s, ld-mips-elf/reloc-5.d: New tests. * ld-mips-elf/mips-elf.exp: Invoke them.
-rw-r--r--ld/testsuite/ChangeLog6
-rw-r--r--ld/testsuite/ld-mips-elf/mips-elf.exp3
-rw-r--r--ld/testsuite/ld-mips-elf/reloc-4.d3
-rw-r--r--ld/testsuite/ld-mips-elf/reloc-4.s7
-rw-r--r--ld/testsuite/ld-mips-elf/reloc-5.d3
-rw-r--r--ld/testsuite/ld-mips-elf/reloc-5.s11
6 files changed, 33 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index ffa18f0..65924c4 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2007-08-01 Adam Nemet <anemet@caviumnetworks.com>
+
+ * ld-mips-elf/reloc-4.s, ld-mips-elf/reloc-4.d,
+ ld-mips-elf/reloc-5.s, ld-mips-elf/reloc-5.d: New tests.
+ * ld-mips-elf/mips-elf.exp: Invoke them.
+
2007-07-29 Alan Modra <amodra@bigpond.net.au>
* ld-elf/weak-dyn-1.rd: Adjust.
diff --git a/ld/testsuite/ld-mips-elf/mips-elf.exp b/ld/testsuite/ld-mips-elf/mips-elf.exp
index 67644f1..ca496c3 100644
--- a/ld/testsuite/ld-mips-elf/mips-elf.exp
+++ b/ld/testsuite/ld-mips-elf/mips-elf.exp
@@ -114,6 +114,9 @@ run_dump_test "reloc-3"
if {$has_newabi} {
run_dump_test "reloc-3-n32"
}
+run_dump_test "reloc-4"
+run_dump_test "reloc-5"
+
if {$has_newabi && $linux_gnu} {
run_dump_test "eh-frame1-n32"
run_dump_test "eh-frame1-n64"
diff --git a/ld/testsuite/ld-mips-elf/reloc-4.d b/ld/testsuite/ld-mips-elf/reloc-4.d
new file mode 100644
index 0000000..936a861
--- /dev/null
+++ b/ld/testsuite/ld-mips-elf/reloc-4.d
@@ -0,0 +1,3 @@
+#source: reloc-4.s
+#ld:
+#error: small-data section exceeds 64KB.*truncated to fit: R_MIPS_LITERAL
diff --git a/ld/testsuite/ld-mips-elf/reloc-4.s b/ld/testsuite/ld-mips-elf/reloc-4.s
new file mode 100644
index 0000000..061fa80
--- /dev/null
+++ b/ld/testsuite/ld-mips-elf/reloc-4.s
@@ -0,0 +1,7 @@
+ .text
+ .globl _start
+_start:
+ li.d $f2,1.10000000000000000000e0
+
+ .section .sdata
+ .space 0x10000
diff --git a/ld/testsuite/ld-mips-elf/reloc-5.d b/ld/testsuite/ld-mips-elf/reloc-5.d
new file mode 100644
index 0000000..2fc74ea
--- /dev/null
+++ b/ld/testsuite/ld-mips-elf/reloc-5.d
@@ -0,0 +1,3 @@
+#source: reloc-5.s
+#ld:
+#error: small-data section exceeds 64KB.*truncated to fit: R_MIPS_GPREL16
diff --git a/ld/testsuite/ld-mips-elf/reloc-5.s b/ld/testsuite/ld-mips-elf/reloc-5.s
new file mode 100644
index 0000000..a4b31b7
--- /dev/null
+++ b/ld/testsuite/ld-mips-elf/reloc-5.s
@@ -0,0 +1,11 @@
+ .text
+ .globl _start
+_start:
+ lw $2, %gp_rel(i)($28)
+
+ .section .sdata
+ .space 0x10000
+
+ .section .sbss
+i:
+ .space 4