2009-10-09 H.J. Lu <hongjiu.lu@intel.com>

PR ld/10749
	* ld-elf/relocatable.d: New.
	* ld-elf/relocatable.t: Likewise.
	* ld-elf/simple.s: Likewise.
This commit is contained in:
H.J. Lu 2009-10-09 13:32:50 +00:00
parent b2b620601b
commit 0e6b97bb76
4 changed files with 28 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2009-10-09 H.J. Lu <hongjiu.lu@intel.com>
PR ld/10749
* ld-elf/relocatable.d: New.
* ld-elf/relocatable.t: Likewise.
* ld-elf/simple.s: Likewise.
2009-10-07 H.J. Lu <hongjiu.lu@intel.com>
PR ld/10744

View File

@ -0,0 +1,9 @@
#name: relocatable with script
#source: simple.s
#ld: -r -T relocatable.t
#readelf: -S --wide
#...
\[[ 0-9]+\] \.text.*[ \t]+PROGBITS[ \t]+0+800000[ \t0-9a-f]+AX.*
\[[ 0-9]+\] \.data.*[ \t]+PROGBITS[ \t]+0+900000[ \t0-9a-f]+WA.*
#pass

View File

@ -0,0 +1,8 @@
SECTIONS
{
. = 0x800000;
.text : { *(.text) }
. = 0x900000;
.data : { *(.data) }
/DISCARD/ : { *(.*) }
}

View File

@ -0,0 +1,4 @@
.text
.long 1
.data
.long 2