aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>1999-09-18 00:44:47 +0000
committerAlan Modra <amodra@gmail.com>1999-09-18 00:44:47 +0000
commitb7be1db6b56f96614296de150a1dd3e3db492cab (patch)
treecc3f72cef6dfdb021b619fe1616c7afa95417df5 /gas/testsuite
parent9f5b33d79596f2c14db954d9fb126eaea9ecd829 (diff)
downloadgdb-b7be1db6b56f96614296de150a1dd3e3db492cab.zip
gdb-b7be1db6b56f96614296de150a1dd3e3db492cab.tar.gz
gdb-b7be1db6b56f96614296de150a1dd3e3db492cab.tar.bz2
Support 8 and 16-bit relocs for i386coff. Enable i386 gas testsuite tests
previously disabled for lack of such support. For *-*-linux*libc1 targets, XFAIL a ld testsuite that fails due to a bug in the dynamic linker prior to glibc-2.1.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/i386/i386.exp4
-rw-r--r--gas/testsuite/gas/i386/reloc.d10
3 files changed, 12 insertions, 7 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 42e87c9..c400d61 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+1999-09-17 Alan Modra <alan@spri.levels.unisa.edu.au>
+
+ * gas/i386/i386.exp: Enable reloc and white tests for COFF.
+ * gas/i386/reloc.d: Accept dir32 relocs.
+
1999-09-12 Donn Terry <donn@interix.com>
* gas/all/gas.exp: Run cofftag test for i*86-*-interix*.
diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp
index 25ed69f..9401136 100644
--- a/gas/testsuite/gas/i386/i386.exp
+++ b/gas/testsuite/gas/i386/i386.exp
@@ -28,8 +28,8 @@ if [istarget "i*86-*-*"] then {
run_dump_test "katmai"
# The reloc and white tests require support for 8 and 16 bit
- # relocs, so we only run them for ELF targets.
- if {[istarget "*-*-elf*"] || [istarget "*-*-linux*"]} then {
+ # relocs, so we only run them for ELF and COFF targets.
+ if {[istarget "*-*-elf*"] || [istarget "*-*-linux*"] || [istarget "*-*-coff*"]} then {
run_dump_test "reloc"
run_list_test "white" "-al --listing-lhs-width=3"
}
diff --git a/gas/testsuite/gas/i386/reloc.d b/gas/testsuite/gas/i386/reloc.d
index b3b6feb..3a95eed 100644
--- a/gas/testsuite/gas/i386/reloc.d
+++ b/gas/testsuite/gas/i386/reloc.d
@@ -7,11 +7,11 @@ Disassembly of section .text:
0+000 <foo>:
0: b3 00 [ ]*mov \$0x0,%bl 1: (R_386_)?8 .text
- 2: 68 00 00 00 00 [ ]*push \$0x0 3: (R_386_)?32 .text
- 7: 05 00 00 00 00 [ ]*add \$0x0,%eax 8: (R_386_)?32 .text
- c: 81 c3 00 00 00 00 [ ]*add \$0x0,%ebx e: (R_386_)?32 .text
- 12: 69 d2 00 00 00 00 [ ]*imul \$0x0,%edx,%edx 14: (R_386_)?32 .text
- 18: 9a 00 00 00 00 00 00 [ ]*lcall \$0x0,\$0x0 19: (R_386_)?32 .text
+ 2: 68 00 00 00 00 [ ]*push \$0x0 3: (R_386_)?(dir)?32 .text
+ 7: 05 00 00 00 00 [ ]*add \$0x0,%eax 8: (R_386_)?(dir)?32 .text
+ c: 81 c3 00 00 00 00 [ ]*add \$0x0,%ebx e: (R_386_)?(dir)?32 .text
+ 12: 69 d2 00 00 00 00 [ ]*imul \$0x0,%edx,%edx 14: (R_386_)?(dir)?32 .text
+ 18: 9a 00 00 00 00 00 00 [ ]*lcall \$0x0,\$0x0 19: (R_386_)?(dir)?32 .text
1f: 66 68 00 00 [ ]*pushw \$0x0 21: (R_386_)?16 .text
23: 90 [ ]*nop
24: 90 [ ]*nop