diff options
author | Alan Modra <amodra@gmail.com> | 2015-02-24 23:04:20 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2015-02-25 00:15:26 +1030 |
commit | 884151a7b8f1770a823e5017c8f5025802c44f24 (patch) | |
tree | c9cab8cd58267370b00aad5e7fa63e3836d7908e /ld | |
parent | 948f632f5671aa16c239507652d92f23f7713703 (diff) | |
download | gdb-884151a7b8f1770a823e5017c8f5025802c44f24.zip gdb-884151a7b8f1770a823e5017c8f5025802c44f24.tar.gz gdb-884151a7b8f1770a823e5017c8f5025802c44f24.tar.bz2 |
Add aligned string merge test
* ld-elf/merge3.s, * ld-elf/merge3.d: New test.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/merge3.d | 14 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/merge3.s | 17 |
3 files changed, 35 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index b362a0a..5883022 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-02-24 Alan Modra <amodra@gmail.com> + + * ld-elf/merge3.s, * ld-elf/merge3.d: New test. + 2015-02-24 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> * ld-avr/region_overflow.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 |