Fix riscv ld testsuite failure for compressed1d.
authorJim Wilson <jimw@sifive.com>
Wed, 15 Nov 2017 01:02:43 +0000 (17:02 -0800)
committerJim Wilson <jimw@sifive.com>
Wed, 15 Nov 2017 01:02:43 +0000 (17:02 -0800)
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.

ld/ChangeLog
ld/testsuite/ld-elf/compress1-alt.s [new file with mode: 0644]
ld/testsuite/ld-elf/compressed1d-alt.d [new file with mode: 0644]

index fe8603cdd9a5c5cf8a5085fe95580f460e68fe20..a012c023526f0efb488e7ca2905a76aae77fc794 100644 (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.
diff --git a/ld/testsuite/ld-elf/compress1-alt.s b/ld/testsuite/ld-elf/compress1-alt.s
new file mode 100644 (file)
index 0000000..0f33236
--- /dev/null
@@ -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
diff --git a/ld/testsuite/ld-elf/compressed1d-alt.d b/ld/testsuite/ld-elf/compressed1d-alt.d
new file mode 100644 (file)
index 0000000..9721f66
--- /dev/null
@@ -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]+ .*
+#...