ENTRY(_start) SECTIONS { /* For some reason qemu UART doesn't work with smaller address */ . = 0x40000000; .boot . : { boot.o(.text) } .text : { *(.text) } .data : { *(.data) } .bss : { *(.bss COMMON) } . = ALIGN(8); . = . + 0x1000; stack_ptr = . ; }