aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1993-10-31 01:41:59 +0000
committerJeff Law <law@redhat.com>1993-10-31 01:41:59 +0000
commit03cc338bc15bdaccba4e88f7822c8b84503dda99 (patch)
tree6652188003360e91d41a852dd86aeb0d752d8c5b /gas
parent548ea75baad331e3534b8df1312d6a374d849066 (diff)
downloadgdb-03cc338bc15bdaccba4e88f7822c8b84503dda99.zip
gdb-03cc338bc15bdaccba4e88f7822c8b84503dda99.tar.gz
gdb-03cc338bc15bdaccba4e88f7822c8b84503dda99.tar.bz2
* gas/hppa/more.parse/parse.exp: Add new test.
* gas/hppa/more.parse/ssbug.s: New test to make sure non-default sections are handled correctly.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/gas/hppa/more.parse/.Sanitize1
-rwxr-xr-xgas/testsuite/gas/hppa/more.parse/parse.exp5
-rw-r--r--gas/testsuite/gas/hppa/more.parse/ssbug.s10
-rw-r--r--gas/testsuite/gas/hppa/parse/.Sanitize1
-rwxr-xr-xgas/testsuite/gas/hppa/parse/parse.exp5
-rw-r--r--gas/testsuite/gas/hppa/parse/ssbug.s10
6 files changed, 32 insertions, 0 deletions
diff --git a/gas/testsuite/gas/hppa/more.parse/.Sanitize b/gas/testsuite/gas/hppa/more.parse/.Sanitize
index ea82cf4..a595b4a 100644
--- a/gas/testsuite/gas/hppa/more.parse/.Sanitize
+++ b/gas/testsuite/gas/hppa/more.parse/.Sanitize
@@ -42,6 +42,7 @@ nosubspace.s
parse.exp
procbug.s
spacebug.s
+ssbug.s
stringer.s
undefbug.s
versionbug.s
diff --git a/gas/testsuite/gas/hppa/more.parse/parse.exp b/gas/testsuite/gas/hppa/more.parse/parse.exp
index 95b2864..50eff96 100755
--- a/gas/testsuite/gas/hppa/more.parse/parse.exp
+++ b/gas/testsuite/gas/hppa/more.parse/parse.exp
@@ -184,5 +184,10 @@ if [istarget hppa*-*-*] then {
# GAS-1.36 choked on this file.
# FIXME. Should check relocations made for this test!
gas_test "exprbug.s" "" "" "Check for sym1-sym2 acceptance"
+
+ # Bad things happen in the PA ELF backend (others too?) if a non-default
+ # section is created...
+ setup_xfail hppa*-*-osf*
+ gas_test "ssbug.s" "" "" "Check for acceptance of non-default subspaces"
}
diff --git a/gas/testsuite/gas/hppa/more.parse/ssbug.s b/gas/testsuite/gas/hppa/more.parse/ssbug.s
new file mode 100644
index 0000000..1960e0d
--- /dev/null
+++ b/gas/testsuite/gas/hppa/more.parse/ssbug.s
@@ -0,0 +1,10 @@
+ .SPACE $PRIVATE$
+ .SUBSPA $DATA$,QUAD=1,ALIGN=8,ACCESS=31
+ .SUBSPA $BSS$,QUAD=1,ALIGN=8,ACCESS=31,ZERO,SORT=82
+ .SUBSPA $SHORTBSS$,QUAD=1,ALIGN=8,ACCESS=31,ZERO,SORT=80
+ .SPACE $TEXT$
+ .SUBSPA $LIT$,QUAD=0,ALIGN=8,ACCESS=44
+ .SUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY
+
+
+
diff --git a/gas/testsuite/gas/hppa/parse/.Sanitize b/gas/testsuite/gas/hppa/parse/.Sanitize
index ea82cf4..a595b4a 100644
--- a/gas/testsuite/gas/hppa/parse/.Sanitize
+++ b/gas/testsuite/gas/hppa/parse/.Sanitize
@@ -42,6 +42,7 @@ nosubspace.s
parse.exp
procbug.s
spacebug.s
+ssbug.s
stringer.s
undefbug.s
versionbug.s
diff --git a/gas/testsuite/gas/hppa/parse/parse.exp b/gas/testsuite/gas/hppa/parse/parse.exp
index 95b2864..50eff96 100755
--- a/gas/testsuite/gas/hppa/parse/parse.exp
+++ b/gas/testsuite/gas/hppa/parse/parse.exp
@@ -184,5 +184,10 @@ if [istarget hppa*-*-*] then {
# GAS-1.36 choked on this file.
# FIXME. Should check relocations made for this test!
gas_test "exprbug.s" "" "" "Check for sym1-sym2 acceptance"
+
+ # Bad things happen in the PA ELF backend (others too?) if a non-default
+ # section is created...
+ setup_xfail hppa*-*-osf*
+ gas_test "ssbug.s" "" "" "Check for acceptance of non-default subspaces"
}
diff --git a/gas/testsuite/gas/hppa/parse/ssbug.s b/gas/testsuite/gas/hppa/parse/ssbug.s
new file mode 100644
index 0000000..1960e0d
--- /dev/null
+++ b/gas/testsuite/gas/hppa/parse/ssbug.s
@@ -0,0 +1,10 @@
+ .SPACE $PRIVATE$
+ .SUBSPA $DATA$,QUAD=1,ALIGN=8,ACCESS=31
+ .SUBSPA $BSS$,QUAD=1,ALIGN=8,ACCESS=31,ZERO,SORT=82
+ .SUBSPA $SHORTBSS$,QUAD=1,ALIGN=8,ACCESS=31,ZERO,SORT=80
+ .SPACE $TEXT$
+ .SUBSPA $LIT$,QUAD=0,ALIGN=8,ACCESS=44
+ .SUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY
+
+
+