* 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.
This commit is contained in:
parent
625ef6dc55
commit
5c3ab52b3b
6 changed files with 51 additions and 0 deletions
|
@ -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>
|
2012-12-04 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* ld-elf/shared.exp (build_tests): Build libneeded1b.so,
|
* ld-elf/shared.exp (build_tests): Build libneeded1b.so,
|
||||||
|
|
|
@ -98,3 +98,6 @@ run_ld_link_tests [list \
|
||||||
"comm-data3b" \
|
"comm-data3b" \
|
||||||
] \
|
] \
|
||||||
]
|
]
|
||||||
|
|
||||||
|
run_dump_test comm-data4
|
||||||
|
run_dump_test comm-data5
|
||||||
|
|
6
ld/testsuite/ld-elf/comm-data4.d
Normal file
6
ld/testsuite/ld-elf/comm-data4.d
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#source: comm-data4.s
|
||||||
|
#ld:
|
||||||
|
#readelf: -r
|
||||||
|
#notarget: hppa64*-*-hpux*
|
||||||
|
|
||||||
|
There are no relocations in this file.
|
15
ld/testsuite/ld-elf/comm-data4.s
Normal file
15
ld/testsuite/ld-elf/comm-data4.s
Normal file
|
@ -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
|
6
ld/testsuite/ld-elf/comm-data5.d
Normal file
6
ld/testsuite/ld-elf/comm-data5.d
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#source: comm-data5.s
|
||||||
|
#ld:
|
||||||
|
#readelf: -r
|
||||||
|
#notarget: hppa64*-*-hpux*
|
||||||
|
|
||||||
|
There are no relocations in this file.
|
15
ld/testsuite/ld-elf/comm-data5.s
Normal file
15
ld/testsuite/ld-elf/comm-data5.s
Normal file
|
@ -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
|
Loading…
Reference in a new issue