binutils-gdb/ld/testsuite/ld-scripts/fill16.d
Alan Modra c7df3df443 Revise "ld testsuite use of notarget"
git commit 624940689a wrongly changed fill.d and fill16.d notarget
entries to xfail, so revert that change and instead replace notarget
with skip.  The two tests are complementary.

This patch also modifies the pr20022 test to use .data, avoiding
xfails on targets that complain about dynamic relocations in .text.
This shows a bug in metag which discards section _foo in pr2022.so.

	* testsuite/ld-elf/hash.d: Comment on mips xfail.
	* testsuite/ld-gc/pr20022b.s: Use .data not .text.
	* testsuite/ld-gc/pr20022.d: Remove xfails.
	* testsuite/ld-scripts/fill.d: Revert most of last patch, but use
	skip rather than notarget.
	* testsuite/ld-scripts/fill16.d: Likewise.
2018-07-11 16:39:04 +09:30

37 lines
1.3 KiB
Makefile

#source: fill16_0.s
#source: fill16_1.s
#source: fill16_2.s
#ld: -T fill.t
#objdump: -s -j .text
#skip: arm-*-coff i[3-7]86-*-coff
#xfail: alpha*-*-*ecoff m32c-*-* sh-*-pe sparc*-*-coff
#xfail: tic30-*-coff tic4x-*-* tic54x-*-* z8k-*-*
#
# See also fill.d. We use `skip' for configurations unsupported
# here that are covered there, and `xfail' for configurations that work
# with neither place. See below for details as to why individual
# configurations are listed above.
#
# alpha-linuxecoff pads out code to 16 bytes.
# arm-coff always aligns code to 4 bytes.
# i386-coff always aligns code to 4 bytes.
# m32c pads out code sections with 4 NOPs (see `m32c_md_end').
# sh-pe pads out code sections to 16 bytes
# sparc-coff aligns to 8 bytes
# tic30-coff aligns to 2 bytes
# tic4x has 4 octet bytes
# tic54x doesn't support .p2align
# z8k-coff aligns to 2 bytes
.*: file format .*
Contents of section .text:
[0-9a-f]+ cafebabe cafebabe cafebabe cafebabe .*
[0-9a-f]+ 01010101 01010101 01010101 01010101 .*
[0-9a-f]+ 02020202 02020202 02020202 02020202 .*
[0-9a-f]+ 12232323 23232323 23232323 23232323 .*
[0-9a-f]+ 03030303 03030303 03030303 03030303 .*
[0-9a-f]+ 00345600 00004567 000089ab (deadbeef|efbeadde) .*
[0-9a-f]+ 00004567 000089ab 0000cdef 00004567 .*
[0-9a-f]+ 000089ab 0000cdef 00000123 .*