Fix riscv ld testsuite failure for compressed1d.

ld/
	* testsuite/ld-elf/compress1-alt.s: New.
	* testsuite/ld-elf/compressed1d-alt.d: New.
	* testsuite/ld-elf/compressed1d.d: Add riscv*-*-* to notarget list.
This commit is contained in:
Jim Wilson 2017-11-14 17:02:43 -08:00
parent 47f19c17d6
commit 754842fba3
3 changed files with 28 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2017-11-14 Jim Wilson <jimw@sifive.com>
* testsuite/ld-elf/compress1-alt.s: New.
* testsuite/ld-elf/compressed1d-alt.d: New.
* testsuite/ld-elf/compressed1d.d: Add riscv*-*-* to notarget list.
2017-11-14 Alan Modra <amodra@gmail.com>
* testsuite/ld-elf/note-3.t: Don't discard .got.

View File

@ -0,0 +1,12 @@
.section .debug_aranges,"",%progbits
.4byte 0x1c
.2byte 0x2
.4byte 0x0
.byte 0x4
.byte 0x0
.2byte 0x0
.2byte 0x0
.4byte 0x0
.4byte 0xfffffffc
.4byte 0x0
.4byte 0x0

View File

@ -0,0 +1,10 @@
#source: compress1-alt.s
#as: --compress-debug-sections=none
#ld: -r --compress-debug-sections=zlib-gnu
#readelf: -SW
#target: riscv*-*-*
#failif
#...
\[[ 0-9]+\] \.zdebug_aranges[ ]+(PROGBITS|MIPS_DWARF)[ 0-9a-z]+ .*
#...