aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2004-10-07 19:12:54 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2004-10-07 19:12:54 +0000
commitb1dca8ee5e150570df09f0e4c704657905ee6939 (patch)
treeec508d9f6c907328cc4e80ce4d5bfee59490252a /gas/testsuite
parent1fd8cd2072e78edb39e67c99c79d1511754e6b88 (diff)
downloadfsf-binutils-gdb-b1dca8ee5e150570df09f0e4c704657905ee6939.zip
fsf-binutils-gdb-b1dca8ee5e150570df09f0e4c704657905ee6939.tar.gz
fsf-binutils-gdb-b1dca8ee5e150570df09f0e4c704657905ee6939.tar.bz2
* config/tc-mips.c (append_insn): Set fx_tcbit for composite relocs.
(md_apply_fix3): Don't treat composite relocs as done.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/mips/elf-rel21.d9
-rw-r--r--gas/testsuite/gas/mips/elf-rel21.s7
-rw-r--r--gas/testsuite/gas/mips/mips.exp3
4 files changed, 24 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 23ff4d9..647a124 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2004-10-07 Richard Sandiford <rsandifo@redhat.com>
+
+ * gas/mips/elf-rel21.[sd]: New test.
+ * gas/mips/mips.exp: Run it.
+
2004-10-07 Jan Beulich <jbeulich@novell.com>
* gas/cfi/cfi-common-4.[ds]: New.
diff --git a/gas/testsuite/gas/mips/elf-rel21.d b/gas/testsuite/gas/mips/elf-rel21.d
new file mode 100644
index 0000000..31e4d23
--- /dev/null
+++ b/gas/testsuite/gas/mips/elf-rel21.d
@@ -0,0 +1,9 @@
+#as: -march=mips3 -mabi=64
+#readelf: --relocs
+#name: MIPS ELF reloc 21
+
+Relocation section '\.rela\.data' .*:
+.*
+.* R_MIPS_GPREL32 * 0+00 * \.data \+ c
+ * Type2: R_MIPS_NONE *
+ * Type3: R_MIPS_NONE *
diff --git a/gas/testsuite/gas/mips/elf-rel21.s b/gas/testsuite/gas/mips/elf-rel21.s
new file mode 100644
index 0000000..b614b17
--- /dev/null
+++ b/gas/testsuite/gas/mips/elf-rel21.s
@@ -0,0 +1,7 @@
+ .abicalls
+ .data
+ .gpword foo
+ .8byte bar - foo
+foo:
+ .word 0
+bar:
diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp
index bd36ec2..ad3c83c 100644
--- a/gas/testsuite/gas/mips/mips.exp
+++ b/gas/testsuite/gas/mips/mips.exp
@@ -662,6 +662,9 @@ if { [istarget mips*-*-*] } then {
}
run_dump_test "elf-rel19"
run_dump_test "elf-rel20"
+ if $has_newabi {
+ run_dump_test "elf-rel21"
+ }
if { !$no_mips16 } {
run_dump_test "${tmips}mips${el}16-e"