old-cross-binutils/ld/testsuite/ld-elf/loadaddr2.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
306 B
Raku

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