/* Native EL0 feature programs: one RX code page at 0x80000000 (text and read-only data), one RW data page at 0x80001000; the kernel provides the stack page below 0x80004000. */ ENTRY(_start) SECTIONS { . = 0x80000000; .text : { KEEP(*(.text._start)) *(.text .text.*) } .rodata : { *(.rodata .rodata.*) } . = 0x80001000; .data : { *(.data .data.*) } .bss : { *(.bss .bss.* COMMON) } /DISCARD/ : { *(.comment) *(.eh_frame*) *(.note*) *(.debug*) } } ASSERT(SIZEOF(.text) + SIZEOF(.rodata) <= 0x1000, "user code page overflow"); ASSERT(SIZEOF(.data) + SIZEOF(.bss) <= 0x1000, "user data page overflow");