1 # Copyright (C) 2014 Free Software Foundation, Inc. 2 # 3 # Copying and distribution of this file, with or without modification, 4 # are permitted in any medium without royalty provided the copyright 5 # notice and this notice are preserved. 6 7 cat <<EOF 8 /* Copyright (C) 2014 Free Software Foundation, Inc. 9 10 Copying and distribution of this script, with or without modification, 11 are permitted in any medium without royalty provided the copyright 12 notice and this notice are preserved. */ 13 14 OUTPUT_FORMAT("${OUTPUT_FORMAT}") 15 OUTPUT_ARCH(${ARCH}) 16 17 ${STACKZERO+${RELOCATING+${STACKZERO}}} 18 ${RELOCATING+PROVIDE (__stack = 0);} 19 SECTIONS 20 { 21 ${RELOCATING+. = ${TEXT_START_ADDR};} 22 .text : 23 { 24 CREATE_OBJECT_SYMBOLS 25 *(.text) 26 ${RELOCATING+_etext = .;} 27 ${RELOCATING+__etext = .;} 28 ${PAD_TEXT+${RELOCATING+. = ${DATA_ALIGNMENT};}} 29 } 30 ${RELOCATING+. = ${DATA_ALIGNMENT};} 31 .data : 32 { 33 *(.data) 34 ${RELOCATING+_edata = .;} 35 ${RELOCATING+__edata = .;} 36 } 37 .bss : 38 { 39 ${RELOCATING+ __bss_start = .}; 40 *(.bss) 41 *(COMMON) 42 ${RELOCATING+_end = ALIGN(4) }; 43 ${RELOCATING+__end = ALIGN(4) }; 44 } 45 } 46 EOF 47