aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2001-03-30 01:20:41 +0000
committerH.J. Lu <hjl.tools@gmail.com>2001-03-30 01:20:41 +0000
commit0068722893c2b04ae34b633e59ab289f31c794a9 (patch)
tree6b9a196b036912ecd1e11f0fae1b0f4466d37532 /gas
parent93c2a809afebb143e36fc1e666c5de746e76d741 (diff)
downloadgdb-0068722893c2b04ae34b633e59ab289f31c794a9.zip
gdb-0068722893c2b04ae34b633e59ab289f31c794a9.tar.gz
gdb-0068722893c2b04ae34b633e59ab289f31c794a9.tar.bz2
2001-03-29 H.J. Lu <hjl@gnu.org>
* gas/i386/relax.s: New test for relaxation between sections. * gas/i386/relax.d: New. * gas/i386/i386.exp: Add tests for ELF.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog7
-rw-r--r--gas/testsuite/gas/i386/i386.exp10
-rw-r--r--gas/testsuite/gas/i386/relax.d10
-rw-r--r--gas/testsuite/gas/i386/relax.s7
4 files changed, 34 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 5ec57a9..98d790e 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2001-03-29 H.J. Lu <hjl@gnu.org>
+
+ * gas/i386/relax.s: New test for relaxation between sections.
+ * gas/i386/relax.d: New.
+
+ * gas/i386/i386.exp: Add tests for ELF.
+
2001-03-27 Chris Demetriou <cgd@broadcom.com>
* gas/mips/lineno.d: Allow for the possibility that
diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp
index e264176..5f61403 100644
--- a/gas/testsuite/gas/i386/i386.exp
+++ b/gas/testsuite/gas/i386/i386.exp
@@ -67,6 +67,16 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]]
run_dump_test "jump16"
run_list_test "white" "-al --listing-lhs-width=3"
}
+
+ # Do they only work for ELF?
+ if { ([istarget "*-*-elf*"]
+ || [istarget "*-*-linux*"]
+ && ![istarget *-*-linux*aout*]
+ && ![istarget *-*-linux*oldld*])
+ } then {
+ run_dump_test "relax"
+ }
+
set ASFLAGS "$old_ASFLAGS"
}
diff --git a/gas/testsuite/gas/i386/relax.d b/gas/testsuite/gas/i386/relax.d
new file mode 100644
index 0000000..348cdcd
--- /dev/null
+++ b/gas/testsuite/gas/i386/relax.d
@@ -0,0 +1,10 @@
+#name: i386 relax
+#objdump: -drw
+
+.*: +file format .*i386.*
+
+Disassembly of section .text:
+Disassembly of section .gnu.linkonce.t.blah:
+
+0+000 <.gnu.linkonce.t.blah>:
+ 0: eb 00 [ ]*jmp 0x2
diff --git a/gas/testsuite/gas/i386/relax.s b/gas/testsuite/gas/i386/relax.s
new file mode 100644
index 0000000..b153842
--- /dev/null
+++ b/gas/testsuite/gas/i386/relax.s
@@ -0,0 +1,7 @@
+ .section .gcc_except_table,"aw",@progbits
+ .section .gnu.linkonce.t.blah,"ax",@progbits
+.L0:
+ jmp .L1
+.L1:
+ .section .gcc_except_table,"aw",@progbits
+ .uleb128 .L1-.L0