3085c3308f
PR ld/3052 * ld-elf/loadaddr1.t: Add "AT (ADDR(.data))". * ld-elf/loadaddr2.t: Likewise.
13 lines
300 B
Raku
13 lines
300 B
Raku
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/ : { *(.*) }
|
|
}
|