Add a testcase for PR ld/12516.
2011-02-25 H.J. Lu <hongjiu.lu@intel.com> PR ld/12516 * ld-elf/dynamic1.d: New. * ld-elf/dynamic1.ld: Likewise. * ld-elf/dynamic1.s: Likewise.
This commit is contained in:
parent
ee00cd23cf
commit
6ee6cf6ac1
@ -1,3 +1,10 @@
|
||||
2011-02-25 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR ld/12516
|
||||
* ld-elf/dynamic1.d: New.
|
||||
* ld-elf/dynamic1.ld: Likewise.
|
||||
* ld-elf/dynamic1.s: Likewise.
|
||||
|
||||
2011-02-25 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* ld-mn10300/i135409-3.s: Correct .size label reference.
|
||||
|
10
ld/testsuite/ld-elf/dynamic1.d
Normal file
10
ld/testsuite/ld-elf/dynamic1.d
Normal file
@ -0,0 +1,10 @@
|
||||
#ld: -shared -T dynamic1.ld
|
||||
#readelf: -l --wide
|
||||
#target: *-*-linux* *-*-gnu*
|
||||
|
||||
#...
|
||||
Section to Segment mapping:
|
||||
Segment Sections...
|
||||
#...
|
||||
0[1-9] .dynamic[ ]*
|
||||
#pass
|
8
ld/testsuite/ld-elf/dynamic1.ld
Normal file
8
ld/testsuite/ld-elf/dynamic1.ld
Normal file
@ -0,0 +1,8 @@
|
||||
SECTIONS
|
||||
{
|
||||
. = SIZEOF_HEADERS;
|
||||
.text : { *(.text) }
|
||||
.data : { *(.data) }
|
||||
.data1 : { KEEP (*(.data1)) }
|
||||
.dynamic : { *(.dynamic) }
|
||||
}
|
2
ld/testsuite/ld-elf/dynamic1.s
Normal file
2
ld/testsuite/ld-elf/dynamic1.s
Normal file
@ -0,0 +1,2 @@
|
||||
.section .data1,"aw"
|
||||
.balign 16
|
Loading…
Reference in New Issue
Block a user