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