Commit | Line | Data |
---|---|---|
6f2750fe | 1 | # Copyright (C) 2014-2016 Free Software Foundation, Inc. |
985743c7 NC |
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 | # | |
252b5132 | 7 | cat <<EOF |
6f2750fe | 8 | /* Copyright (C) 2014-2016 Free Software Foundation, Inc. |
985743c7 NC |
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 | ||
252b5132 RH |
14 | OUTPUT_FORMAT("${OUTPUT_FORMAT}") |
15 | OUTPUT_ARCH(${ARCH}) | |
16 | ||
17 | ${RELOCATING+${LIB_SEARCH_DIRS}} | |
18 | ${STACKZERO+${RELOCATING+${STACKZERO}}} | |
19 | SECTIONS | |
20 | { | |
21 | .text ${RELOCATING+${TEXT_START_ADDR}} : | |
22 | { | |
23 | CREATE_OBJECT_SYMBOLS | |
24 | ${RELOCATING+__stext_ = .;} | |
25 | *(.text) | |
26 | ${PAD_TEXT+${RELOCATING+. = ${DATA_ALIGNMENT};}} | |
27 | ${RELOCATING+_etext = ${DATA_ALIGNMENT};} | |
28 | ${RELOCATING+__etext = ${DATA_ALIGNMENT};} | |
29 | } | |
30 | .data ${RELOCATING+${DATA_ALIGNMENT}} : | |
31 | { | |
32 | ${RELOCATING+__sdata_ = .;} | |
33 | *(.data) | |
34 | ${CONSTRUCTING+CONSTRUCTORS} | |
5af8a2fb NC |
35 | ${RELOCATING+_edata = ${DATA_ALIGNMENT};} |
36 | ${RELOCATING+__edata = ${DATA_ALIGNMENT};} | |
252b5132 | 37 | } |
5af8a2fb | 38 | .bss ${RELOCATING+${DATA_ALIGNMENT}} : |
252b5132 RH |
39 | { |
40 | ${RELOCATING+ __bss_start = .}; | |
41 | *(.bss) | |
42 | *(COMMON) | |
43 | ${RELOCATING+_end = ALIGN(4) }; | |
44 | ${RELOCATING+__end = ALIGN(4) }; | |
45 | } | |
46 | } | |
47 | EOF |