aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2004-10-07 19:15:29 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2004-10-07 19:15:29 +0000
commit99022dfb1d4b1de6f394026ffd5b738b522aa9f6 (patch)
treee45068b5b16d5c80f2d723e3ae29368b1f48e534 /gas/testsuite
parentb1dca8ee5e150570df09f0e4c704657905ee6939 (diff)
downloadfsf-binutils-gdb-99022dfb1d4b1de6f394026ffd5b738b522aa9f6.zip
fsf-binutils-gdb-99022dfb1d4b1de6f394026ffd5b738b522aa9f6.tar.gz
fsf-binutils-gdb-99022dfb1d4b1de6f394026ffd5b738b522aa9f6.tar.bz2
* elf64-mips.c (mips_elf64_write_rel): Use STN_UNDEF for relocs
against the absolute section. (mips_elf64_write_rela): Likewise.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/mips/elf-rel22.d9
-rw-r--r--gas/testsuite/gas/mips/elf-rel22.s4
-rw-r--r--gas/testsuite/gas/mips/mips.exp1
4 files changed, 19 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 647a124..b15a824 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2004-10-07 Richard Sandiford <rsandifo@redhat.com>
+ * gas/mips/elf-rel22.[sd]: New test.
+ * gas/mips/mips.exp: Run it.
+
+2004-10-07 Richard Sandiford <rsandifo@redhat.com>
+
* gas/mips/elf-rel21.[sd]: New test.
* gas/mips/mips.exp: Run it.
diff --git a/gas/testsuite/gas/mips/elf-rel22.d b/gas/testsuite/gas/mips/elf-rel22.d
new file mode 100644
index 0000000..14ab1a8
--- /dev/null
+++ b/gas/testsuite/gas/mips/elf-rel22.d
@@ -0,0 +1,9 @@
+#as: -march=mips3 -mabi=64
+#readelf: --relocs
+#name: MIPS ELF reloc 22
+
+Relocation section '\.rela\.text' .*:
+.*
+.* R_MIPS_LO16 * 0+04
+ * Type2: R_MIPS_SUB *
+ * Type3: R_MIPS_LO16 *
diff --git a/gas/testsuite/gas/mips/elf-rel22.s b/gas/testsuite/gas/mips/elf-rel22.s
new file mode 100644
index 0000000..82a1cac
--- /dev/null
+++ b/gas/testsuite/gas/mips/elf-rel22.s
@@ -0,0 +1,4 @@
+ lui $4,%lo(%neg(%lo(bar-foo)))
+foo:
+ nop
+bar:
diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp
index ad3c83c..6818417 100644
--- a/gas/testsuite/gas/mips/mips.exp
+++ b/gas/testsuite/gas/mips/mips.exp
@@ -664,6 +664,7 @@ if { [istarget mips*-*-*] } then {
run_dump_test "elf-rel20"
if $has_newabi {
run_dump_test "elf-rel21"
+ run_dump_test "elf-rel22"
}
if { !$no_mips16 } {