Commit | Line | Data |
---|---|---|
219d1afa | 1 | # Copyright (C) 2014-2018 Free Software Foundation, Inc. |
6c19b93b | 2 | # |
985743c7 NC |
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 |
219d1afa | 8 | /* Copyright (C) 2014-2018 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("${OUTPUT_ARCH}") | |
596d6d91 | 16 | ${RELOCATING+ENTRY (_start)} |
252b5132 | 17 | |
6c19b93b AM |
18 | SECTIONS |
19 | { | |
40a633d5 | 20 | .text ${BIG+ ${RELOCATING+ 0x0000000}} : |
6c19b93b AM |
21 | { |
22 | *(.text) | |
252b5132 RH |
23 | *(.strings) |
24 | *(.rdata) | |
25 | } | |
26 | ||
6c19b93b | 27 | .ctors ${BIG+ ${RELOCATING+ 0x2000000}} : |
252b5132 | 28 | { |
40a633d5 | 29 | ${CONSTRUCTING+ ___ctors = . ; } |
252b5132 | 30 | *(.ctors); |
40a633d5 | 31 | ${CONSTRUCTING+ ___ctors_end = . ; } |
252b5132 RH |
32 | ___dtors = . ; |
33 | *(.dtors); | |
40a633d5 | 34 | ${CONSTRUCTING+ ___dtors_end = . ; } |
6c19b93b | 35 | } |
252b5132 | 36 | |
40a633d5 NC |
37 | .data ${BIG+ ${RELOCATING+ 0x3000000}} : |
38 | { | |
39 | *(.data) | |
252b5132 RH |
40 | } |
41 | ||
6c19b93b | 42 | .bss ${BIG+ ${RELOCATING+ 0x4000000}} : |
40a633d5 NC |
43 | { |
44 | ${RELOCATING+ __start_bss = . ; } | |
45 | *(.bss); | |
46 | *(COMMON); | |
47 | ${RELOCATING+ __end_bss = . ; } | |
48 | } | |
49 | ||
50 | .heap ${BIG+ ${RELOCATING+ 0x5000000}} : | |
51 | { | |
52 | ${RELOCATING+ __start_heap = . ; } | |
53 | ${RELOCATING+ . = . + 20k ; } | |
54 | ${RELOCATING+ __end_heap = . ; } | |
6c19b93b | 55 | } |
252b5132 | 56 | |
6c19b93b | 57 | .stack ${RELOCATING+ 0xf000 } : |
252b5132 | 58 | { |
40a633d5 NC |
59 | ${RELOCATING+ _stack = . ; } |
60 | *(.stack) | |
61 | ${RELOCATING+ __stack_top = . ; } | |
62 | } | |
252b5132 RH |
63 | |
64 | } | |
65 | EOF | |
66 | ||
67 | ||
68 | ||
69 |