ENTRY(_start) SECTIONS { /* 0b10101010101000000000000000000000 */ . = 0xaaa00000; /* For some reason ld warns when _start is not defined. */ /* Other .elf files link ok - only PL0_test.elf seems to */ /* expect _start to be deifned. */ _start = .; __start = .; __text_start = .; .text : { /* have entry point at the beginning */ KEEP(*(.text.PL0main)) *(.text) } . = ALIGN(4096); /* align to page size */ __text_end = .; __rodata_start = .; .rodata : { *(.rodata) } . = ALIGN(4096); /* align to page size */ __rodata_end = .; __data_start = .; .data : { *(.data) } . = ALIGN(4096); /* align to page size */ __data_end = .; __bss_start = .; .bss : { bss = .; *(.bss) } . = ALIGN(4096); /* align to page size */ __bss_end = .; __bss_size = __bss_end - __bss_start; __end = .; }