From 5c3ab52b3b9b0c3ff205d5eb0cd3530b315f517c Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 6 Dec 2012 00:10:41 +0000 Subject: [PATCH] * 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. --- ld/testsuite/ChangeLog | 6 ++++++ ld/testsuite/ld-elf/comm-data.exp | 3 +++ ld/testsuite/ld-elf/comm-data4.d | 6 ++++++ ld/testsuite/ld-elf/comm-data4.s | 15 +++++++++++++++ ld/testsuite/ld-elf/comm-data5.d | 6 ++++++ ld/testsuite/ld-elf/comm-data5.s | 15 +++++++++++++++ 6 files changed, 51 insertions(+) create mode 100644 ld/testsuite/ld-elf/comm-data4.d create mode 100644 ld/testsuite/ld-elf/comm-data4.s create mode 100644 ld/testsuite/ld-elf/comm-data5.d create mode 100644 ld/testsuite/ld-elf/comm-data5.s 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 + + * 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 * 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 -- 2.7.4