1# Copyright (C) 2014-2016 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 7cat <<EOF 8/* Copyright (C) 2014-2016 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 14OUTPUT_FORMAT("${OUTPUT_FORMAT}") 15OUTPUT_ARCH(${ARCH}) 16 17${RELOCATING+${LIB_SEARCH_DIRS}} 18${RELOCATING+__DYNAMIC = 0;} 19${STACKZERO+${RELOCATING+${STACKZERO}}} 20${SHLIB_PATH+${RELOCATING+${SHLIB_PATH}}} 21SECTIONS 22{ 23 .text ${RELOCATING+${TEXT_START_ADDR}}: 24 { 25 CREATE_OBJECT_SYMBOLS 26 *(.text) 27 ${PAD_TEXT+${RELOCATING+. = ${DATA_ALIGNMENT};}} 28 ${RELOCATING+_etext = ${DATA_ALIGNMENT};} 29 ${RELOCATING+__etext = ${DATA_ALIGNMENT};} 30 } 31 .data ${RELOCATING+${DATA_ALIGNMENT}} : 32 { 33 *(.data) 34 ${CONSTRUCTING+CONSTRUCTORS} 35 ${RELOCATING+_edata = .;} 36 ${RELOCATING+__edata = .;} 37 } 38 .bss ${RELOCATING+SIZEOF(.data) + ADDR(.data)} : 39 { 40 ${RELOCATING+ __bss_start = .}; 41 *(.bss) 42 *(COMMON) 43 ${RELOCATING+_end = ALIGN(4) }; 44 ${RELOCATING+__end = ALIGN(4) }; 45 } 46} 47EOF 48