old-cross-binutils/ld/testsuite/ld-elf/loadaddr1.t
H.J. Lu 3085c3308f 2006-08-23 H.J. Lu <hongjiu.lu@intel.com>
PR ld/3052
	* ld-elf/loadaddr1.t: Add "AT (ADDR(.data))".
	* ld-elf/loadaddr2.t: Likewise.
2006-08-23 14:45:30 +00:00

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/ : { *(.*) }
}