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}", "${BIG_OUTPUT_FORMAT}",
15	      "${LITTLE_OUTPUT_FORMAT}")
16OUTPUT_ARCH(${ARCH})
17
18${RELOCATING+${LIB_SEARCH_DIRS}}
19SECTIONS
20{
21  ${RELOCATING+. = ${TEXT_START_ADDR};}
22  .text :
23  {
24    CREATE_OBJECT_SYMBOLS
25    *(.text)
26    ${RELOCATING+etext = ${DATA_ALIGNMENT};}
27  }
28  ${RELOCATING+. = ${DATA_ALIGNMENT};}
29  .data :
30  {
31    *(.data)
32    ${CONSTRUCTING+CONSTRUCTORS}
33    ${RELOCATING+edata  =  .;}
34  }
35  .bss :
36  {
37   *(.bss)
38   *(COMMON)
39   ${RELOCATING+end = . };
40  }
41}
42EOF
43