ENTRY(_start) SECTIONS { . = 0x0000; /* Start address of the program */ .text : { *(.text) /* Place all .text sections (code) here */ } . = 0x1000; .data : { *(.data) /* Place all .data sections (initialized data) here */ } . = 0x2000; .bss : { *(.bss) /* Place all .bss sections (uninitialized data) here */ } . = 0x3000; .stack : { *(.stack) } /DISCARD/ : { *(.note.GNU-stack) } /* Discard stack section */ }