* ld-elf/loadaddr.t: New, extracted from..
* ld-elf/loadaddr1.t: ..here. Use insert. * ld-elf/loadaddr2.t: Likewise. * ld-elf/loadaddr1.d: Update. * ld-elf/loadaddr2.d: Update.
This commit is contained in:
parent
8bc7a1c115
commit
8ee35d562f
6 changed files with 22 additions and 16 deletions
|
@ -1,3 +1,11 @@
|
|||
2008-01-26 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* ld-elf/loadaddr.t: New, extracted from..
|
||||
* ld-elf/loadaddr1.t: ..here. Use insert.
|
||||
* ld-elf/loadaddr2.t: Likewise.
|
||||
* ld-elf/loadaddr1.d: Update.
|
||||
* ld-elf/loadaddr2.d: Update.
|
||||
|
||||
2008-01-25 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* ld-spu/ovl.lnk: Delete overlay.
|
||||
|
|
10
ld/testsuite/ld-elf/loadaddr.t
Normal file
10
ld/testsuite/ld-elf/loadaddr.t
Normal file
|
@ -0,0 +1,10 @@
|
|||
SECTIONS
|
||||
{
|
||||
. = -0x7ff00000;
|
||||
.text : {*(.text .text.*)}
|
||||
. = ALIGN(64);
|
||||
.foo : { *(.foo) }
|
||||
. = ALIGN(8192);
|
||||
.data : AT (ADDR(.data)) { *(.data) }
|
||||
/DISCARD/ : { *(.*) }
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
#source: loadaddr.s
|
||||
#ld: -T loadaddr1.t -z max-page-size=0x200000
|
||||
#ld: -T loadaddr1.t -T loadaddr.t -z max-page-size=0x200000
|
||||
#readelf: -l --wide
|
||||
#target: *-*-linux*
|
||||
|
||||
|
|
|
@ -1,13 +1,7 @@
|
|||
SECTIONS
|
||||
{
|
||||
. = -0x7ff00000;
|
||||
.text : {*(.text .text.*)}
|
||||
. = ALIGN(64);
|
||||
.foo : { *(.foo) }
|
||||
.bar -0xa00000 : AT ((LOADADDR(.foo) + SIZEOF(.foo) + 4095) & ~(4095))
|
||||
{ *(.bar) }
|
||||
. = LOADADDR(.bar) + 4096;
|
||||
. = ALIGN(8192);
|
||||
.data : AT (ADDR(.data)) { *(.data) }
|
||||
/DISCARD/ : { *(.*) }
|
||||
}
|
||||
INSERT AFTER .foo;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#source: loadaddr.s
|
||||
#ld: -T loadaddr2.t -z max-page-size=0x200000
|
||||
#ld: -T loadaddr2.t -T loadaddr.t -z max-page-size=0x200000
|
||||
#readelf: -l --wide
|
||||
#target: *-*-linux*
|
||||
|
||||
|
|
|
@ -1,13 +1,7 @@
|
|||
SECTIONS
|
||||
{
|
||||
. = -0x7ff00000;
|
||||
.text : {*(.text .text.*)}
|
||||
. = ALIGN(64);
|
||||
.foo : { *(.foo) }
|
||||
.bar -0x7fef0000 : AT ((LOADADDR(.foo) + SIZEOF(.foo) + 4095) & ~(4095))
|
||||
{ *(.bar) }
|
||||
. = LOADADDR(.bar) + 0x200000;
|
||||
. = ALIGN(8192);
|
||||
.data : AT (ADDR(.data)) { *(.data) }
|
||||
/DISCARD/ : { *(.*) }
|
||||
}
|
||||
INSERT BEFORE .data;
|
||||
|
|
Loading…
Reference in a new issue