diff options
author | Alan Modra <amodra@gmail.com> | 2012-12-06 00:10:41 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2012-12-06 00:10:41 +0000 |
commit | 5c3ab52b3b9b0c3ff205d5eb0cd3530b315f517c (patch) | |
tree | 4e95906aa5ae028d345be3f548c8f1b7c663cc58 | |
parent | 625ef6dc5557679f800face6510b959b23892752 (diff) | |
download | gdb-5c3ab52b3b9b0c3ff205d5eb0cd3530b315f517c.zip gdb-5c3ab52b3b9b0c3ff205d5eb0cd3530b315f517c.tar.gz gdb-5c3ab52b3b9b0c3ff205d5eb0cd3530b315f517c.tar.bz2 |
* ld-elf/comm-data4.d, ld-elf/comm-data4.s: New test.
* ld-elf/comm-data5.d, ld-elf/comm-data5.s: New test.
* ld-elf/comm-data.exp: Run them.
-rw-r--r-- | ld/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/comm-data.exp | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/comm-data4.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/comm-data4.s | 15 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/comm-data5.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/comm-data5.s | 15 |
6 files changed, 51 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 6f68d80..5b1bc8f 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2012-12-06 Alan Modra <amodra@gmail.com> + + * ld-elf/comm-data4.d, ld-elf/comm-data4.s: New test. + * ld-elf/comm-data5.d, ld-elf/comm-data5.s: New test. + * ld-elf/comm-data.exp: Run them. + 2012-12-04 H.J. Lu <hongjiu.lu@intel.com> * ld-elf/shared.exp (build_tests): Build libneeded1b.so, diff --git a/ld/testsuite/ld-elf/comm-data.exp b/ld/testsuite/ld-elf/comm-data.exp index 71b856d..0a624d5 100644 --- a/ld/testsuite/ld-elf/comm-data.exp +++ b/ld/testsuite/ld-elf/comm-data.exp @@ -98,3 +98,6 @@ run_ld_link_tests [list \ "comm-data3b" \ ] \ ] + +run_dump_test comm-data4 +run_dump_test comm-data5 diff --git a/ld/testsuite/ld-elf/comm-data4.d b/ld/testsuite/ld-elf/comm-data4.d new file mode 100644 index 0000000..05c4401 --- /dev/null +++ b/ld/testsuite/ld-elf/comm-data4.d @@ -0,0 +1,6 @@ +#source: comm-data4.s +#ld: +#readelf: -r +#notarget: hppa64*-*-hpux* + +There are no relocations in this file. diff --git a/ld/testsuite/ld-elf/comm-data4.s b/ld/testsuite/ld-elf/comm-data4.s new file mode 100644 index 0000000..ed17cf2 --- /dev/null +++ b/ld/testsuite/ld-elf/comm-data4.s @@ -0,0 +1,15 @@ + .comm i,4,4 + + .data + .dc.a i + + .globl main + .globl start + .globl _start + .globl __start + .text +main: +start: +_start: +__start: + .dc.a 0 diff --git a/ld/testsuite/ld-elf/comm-data5.d b/ld/testsuite/ld-elf/comm-data5.d new file mode 100644 index 0000000..78da5c1 --- /dev/null +++ b/ld/testsuite/ld-elf/comm-data5.d @@ -0,0 +1,6 @@ +#source: comm-data5.s +#ld: +#readelf: -r +#notarget: hppa64*-*-hpux* + +There are no relocations in this file. diff --git a/ld/testsuite/ld-elf/comm-data5.s b/ld/testsuite/ld-elf/comm-data5.s new file mode 100644 index 0000000..1605b8a --- /dev/null +++ b/ld/testsuite/ld-elf/comm-data5.s @@ -0,0 +1,15 @@ + .comm i,4,4 + + .section .rodata,"a",%progbits + .dc.a i + + .globl main + .globl start + .globl _start + .globl __start + .text +main: +start: +_start: +__start: + .dc.a 0 |