* Add aligned string merge test
@ 2015-02-24 16:41 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2015-02-24 16:41 UTC (permalink / raw)
To: binutils
This is really a testcase for gold pr18010 but it seemed a good idea
to me to add it to ld/testsuite.
* ld-elf/merge3.s, * ld-elf/merge3.d: New test.
diff --git a/ld/testsuite/ld-elf/merge3.d b/ld/testsuite/ld-elf/merge3.d
new file mode 100644
index 0000000..c595135
--- /dev/null
+++ b/ld/testsuite/ld-elf/merge3.d
@@ -0,0 +1,14 @@
+#source: merge3.s
+#ld: -T merge.ld
+#objdump: -s
+#xfail: "arc-*-*" "d30v-*-*" "dlx-*-*" "hppa64-*-*"
+#xfail: "i960-*-*" "ip2k-*-*" "pj-*-*"
+
+.*: file format .*elf.*
+
+Contents of section \.text:
+ 1000 (20100000|00001020) (10100000|00001010) (18100000|00001018) .*
+Contents of section \.rodata:
+ 1010 64656667 00000000 30313233 34353637 defg....01234567
+ 1020 61626364 65666700 abcdefg.
+#pass
diff --git a/ld/testsuite/ld-elf/merge3.s b/ld/testsuite/ld-elf/merge3.s
new file mode 100644
index 0000000..9328d4d
--- /dev/null
+++ b/ld/testsuite/ld-elf/merge3.s
@@ -0,0 +1,17 @@
+ .section .rodata.str1.8,"aMS",%progbits,1
+ .p2align 3
+.LC0:
+ .asciz "abcdefg"
+ .p2align 3
+.LC1:
+ .asciz "defg"
+ .p2align 3
+.LC2:
+ .asciz "01234567abcdefg"
+
+ .text
+ .global _start
+_start:
+ .long .LC0
+ .long .LC1
+ .long .LC2
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-02-24 13:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-24 16:41 Add aligned string merge test Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).