Testsuite fixes for hppa64-hpux

HPUX has a different .comm syntax, and anything in the first column
is a label.

gas/
	* testsuite/gas/elf/strtab.s: Don't put directives on first
	column or continuation with labels not in first column.
ld/
	* testsuite/ld-elf/elf.exp: Xfail pr20995 tests on hppa64-hpux.
	Set up HPUX defsym.  Run pr14170 tests and build symbol3 objects,
	defining HPUX where necessary.  Define HPUX for implib tests.
	* testsuite/ld-elf/comm-data4.d: Run for hpux.
	* testsuite/ld-elf/endsym.d: Likewise.
	* testsuite/ld-elf/linkoncerdiff.d: Likewise.
	* testsuite/ld-elf/comm-data4.s: Add alternate .comm when HPUX.
	* testsuite/ld-elf/comm-data5.s: Likewise.
	* testsuite/ld-elf/endsym.s: Likewise.
	* testsuite/ld-elf/pr14170c.s: Likewise.
	* testsuite/ld-elf/symbol3.s: Likewise.
	* testsuite/ld-elf/implib.s: Likewise.  Don't start directives
	in first column.
	* testsuite/ld-elf/linkoncerdiff2.s: Don't use numeric labels.
	* testsuite/ld-elf/warn3.d: Run for hpux.
	* testsuite/ld-scripts/rgn-at10.d: Xfail for hpux.
	* testsuite/ld-scripts/rgn-at11.d: Likewise.
	* testsuite/ld-scripts/size-2.d: Remove xfail for hpux.
This commit is contained in:
Alan Modra
2017-02-25 00:02:27 +10:30
parent 3b83ea38cf
commit dd803a2430
18 changed files with 129 additions and 63 deletions

View File

@@ -1,6 +1,7 @@
#source: rgn-at10.s
#ld: -T rgn-at10.t
#objdump: -h --wide
#xfail: hppa*64*-*-hpux*
# Test that lma is adjusted in case the section start vma is aligned and
# lma_region != region if requested by script. Make sure this works with
# non-load sections.

View File

@@ -1,6 +1,7 @@
#source: rgn-at11.s
#ld: -T rgn-at11.t
#objdump: -h --wide
#xfail: hppa*64*-*-hpux*
# Test that lma is not adjusted in case the section start vma is aligned and
# lma_region != region if not requested by script.
# Fails for RX because it ignores the LMA (for compatibility with Renesas tools)

View File

@@ -1,7 +1,7 @@
#source: size-2.s
#ld: -T size-2.t
#readelf: -l --wide
#xfail: "hppa64-*-*" "v850*-*-*"
#xfail: "v850*-*-*"
#...
Program Headers: