* ld-elf/merge2.s: New.
authorAlan Modra <amodra@gmail.com>
Wed, 10 Sep 2003 23:35:40 +0000 (23:35 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 10 Sep 2003 23:35:40 +0000 (23:35 +0000)
* ld-elf/merge2.d: New.

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

index a7e309c1f7122e13c5feb1b79f5340b58ab99f52..c53558269fc111f017a2a61cd30eed0e8c34efca 100644 (file)
@@ -1,3 +1,8 @@
+2003-09-11  Alan Modra  <amodra@bigpond.net.au>
+
+       * ld-elf/merge2.s: New.
+       * ld-elf/merge2.d: New.
+
 2003-08-16  Hans-Peter Nilsson  <hp@bitrange.com>
 
        * ld-mmix/bpo-9.d, ld-mmix/bpo-10.d, ld-mmix/bpo-11.d: Adjust for
diff --git a/ld/testsuite/ld-elf/merge2.d b/ld/testsuite/ld-elf/merge2.d
new file mode 100644 (file)
index 0000000..cb49c51
--- /dev/null
@@ -0,0 +1,15 @@
+#source: merge2.s
+#ld: -T merge.ld
+#objdump: -s
+
+.*:     file format .*elf.*
+
+Contents of section .text:
+ 1000 (3010)?0000(1030)? (3210)?0000(1032)? (3110)?0000(1031)? (3410)?0000(1034)?  .*
+ 1010 (4010)?0000(1040)? (3810)?0000(1038)? (4810)?0000(1048)? (3c10)?0000(103c)?  .*
+ 1020 (5010)?0000(1050)? (5410)?0000(1054)? (5810)?0000(1058)? (5010)?0000(1050)?  .*
+Contents of section .rodata:
+ 1030 61626300 62000000 (78563412|12345678) 99999999  .*
+ 1040 (78563412|12345678) 00000000 99999999 00000000  .*
+ 1050 (78563412|12345678) 99999999 00000000           .*
+#pass
diff --git a/ld/testsuite/ld-elf/merge2.s b/ld/testsuite/ld-elf/merge2.s
new file mode 100644 (file)
index 0000000..41d066a
--- /dev/null
@@ -0,0 +1,58 @@
+       .section .rodata.str,"aMS","progbits",1
+.LC0:
+       .asciz  "abc"
+.LC1:
+       .asciz  "c"
+.LC2:
+       .asciz  "bc"
+.LC3:
+       .asciz  "b"
+
+
+       .section .rodata.str2,"aMS","progbits",4
+       .p2align 2
+.LC4:
+       .long   0x12345678
+       .long   0
+.LC5:
+       .long   0x12345678
+       .long   0x99999999
+       .long   0x12345678
+       .long   0
+.LC6:
+       .long   0x99999999
+       .long   0
+.LC7:
+       .long   0x99999999
+       .long   0x12345678
+       .long   0
+
+
+       .section .rodata.m,"aM","progbits",4
+       .p2align 2
+.LC8:
+       .long   0x12345678
+.LC9:
+       .long   0x99999999
+.LC10:
+       .long   0
+.LC11:
+       .long   0x12345678
+
+
+       .text
+       .global _start
+_start:
+       .long   .LC0
+.LT0:
+       .long   .LC1
+       .long   .LC2
+       .long   .LC3
+       .long   .LC4
+       .long   .LC5
+       .long   .LC6
+       .long   .LC7
+       .long   .LC8
+       .long   .LC9
+       .long   .LC10
+       .long   .LC11