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:
parent
b2b620601b
commit
0e6b97bb76
@ -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
|
||||
|
9
ld/testsuite/ld-elf/relocatable.d
Normal file
9
ld/testsuite/ld-elf/relocatable.d
Normal 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
|
8
ld/testsuite/ld-elf/relocatable.t
Normal file
8
ld/testsuite/ld-elf/relocatable.t
Normal file
@ -0,0 +1,8 @@
|
||||
SECTIONS
|
||||
{
|
||||
. = 0x800000;
|
||||
.text : { *(.text) }
|
||||
. = 0x900000;
|
||||
.data : { *(.data) }
|
||||
/DISCARD/ : { *(.*) }
|
||||
}
|
4
ld/testsuite/ld-elf/simple.s
Normal file
4
ld/testsuite/ld-elf/simple.s
Normal file
@ -0,0 +1,4 @@
|
||||
.text
|
||||
.long 1
|
||||
.data
|
||||
.long 2
|
Loading…
x
Reference in New Issue
Block a user