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:
H.J. Lu 2011-02-25 15:53:24 +00:00
parent ee00cd23cf
commit 6ee6cf6ac1
4 changed files with 27 additions and 0 deletions

View File

@ -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.

View 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

View File

@ -0,0 +1,8 @@
SECTIONS
{
. = SIZEOF_HEADERS;
.text : { *(.text) }
.data : { *(.data) }
.data1 : { KEEP (*(.data1)) }
.dynamic : { *(.dynamic) }
}

View File

@ -0,0 +1,2 @@
.section .data1,"aw"
.balign 16