ENTRY(main) MEMORY { APP (rwx) : ORIGIN = 0, LENGTH = @MAX_APP_MEMORY_SIZE@ } SECTIONS { .header : { KEEP(*(.pbl_header)) } > APP /* -- DO NOT ADD ANY NEW SECTIONS HERE AND DO NOT CHANGE THE ALIGNMENT -- */ /* The GNU build ID is tacked to the end of the PebbleProcessInfo struct: */ .note.gnu.build-id ALIGN(1) : { PROVIDE(BUILD_ID = .); KEEP(*(.note.gnu.build-id)) } > APP .text : { *(.text) *(.text.*) *(.rodata) *(.rodata*) } > APP .data : { KEEP(*(.data)) *(.data.*) } > APP .bss : { *(.bss) *(.bss.*) } > APP DISCARD : { libc.a ( * ) libm.a ( * ) libgcc.a ( * ) *(.eh_frame) } } /* vim:filetype=ld */