From: Alan Modra Date: Thu, 6 Dec 2012 00:10:41 +0000 (+0000) Subject: * ld-elf/comm-data4.d, ld-elf/comm-data4.s: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5c3ab52b3b9b0c3ff205d5eb0cd3530b315f517c;p=binutils-gdb.git * 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. --- diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 6f68d809c26..5b1bc8fcfef 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 71b856d9acf..0a624d55492 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 00000000000..05c440132a6 --- /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 00000000000..ed17cf2d44c --- /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 00000000000..78da5c1199d --- /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 00000000000..1605b8a05f2 --- /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