aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorJim Wilson <jimw@sifive.com>2017-11-14 17:02:43 -0800
committerJim Wilson <jimw@sifive.com>2017-11-14 17:02:43 -0800
commit754842fba3981b8d9d4d516d6cfc65d3992fa4b2 (patch)
tree1b2338b5c340e85fe3b6d2a0bf276050245a9255 /ld
parent47f19c17d6eaa45dc756a057c299a5194ad0b75c (diff)
downloadfsf-binutils-gdb-754842fba3981b8d9d4d516d6cfc65d3992fa4b2.zip
fsf-binutils-gdb-754842fba3981b8d9d4d516d6cfc65d3992fa4b2.tar.gz
fsf-binutils-gdb-754842fba3981b8d9d4d516d6cfc65d3992fa4b2.tar.bz2
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.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/testsuite/ld-elf/compress1-alt.s12
-rw-r--r--ld/testsuite/ld-elf/compressed1d-alt.d10
3 files changed, 28 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index fe8603c..a012c02 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -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
index 0000000..0f33236
--- /dev/null
+++ b/ld/testsuite/ld-elf/compress1-alt.s
@@ -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
index 0000000..9721f66
--- /dev/null
+++ b/ld/testsuite/ld-elf/compressed1d-alt.d
@@ -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]+ .*
+#...