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 RH |
7 | TORS=".tors : |
8 | { | |
9 | ___ctors = . ; | |
10 | *(.ctors) | |
11 | ___ctors_end = . ; | |
12 | ___dtors = . ; | |
13 | *(.dtors) | |
14 | ___dtors_end = . ; | |
15 | } > ram" | |
16 | ||
17 | cat <<EOF | |
219d1afa | 18 | /* Copyright (C) 2014-2018 Free Software Foundation, Inc. |
985743c7 NC |
19 | |
20 | Copying and distribution of this script, with or without modification, | |
21 | are permitted in any medium without royalty provided the copyright | |
22 | notice and this notice are preserved. */ | |
23 | ||
252b5132 RH |
24 | OUTPUT_FORMAT("${OUTPUT_FORMAT}") |
25 | OUTPUT_ARCH(${ARCH}) | |
26 | ||
27 | MEMORY | |
28 | { | |
29 | ram : o = 0x1000, l = 512k | |
30 | } | |
31 | ||
32 | SECTIONS | |
33 | { | |
34 | .text : | |
35 | { | |
36 | *(.text) | |
37 | *(.strings) | |
38 | ${RELOCATING+ _etext = . ; } | |
39 | } ${RELOCATING+ > ram} | |
40 | ${CONSTRUCTING+${TORS}} | |
41 | .data : | |
42 | { | |
43 | *(.data) | |
ff326826 DJ |
44 | ${RELOCATING+*(.gcc_exc*)} |
45 | ${RELOCATING+___EH_FRAME_BEGIN__ = . ;} | |
46 | ${RELOCATING+*(.eh_fram*)} | |
47 | ${RELOCATING+___EH_FRAME_END__ = . ;} | |
48 | ${RELOCATING+LONG(0);} | |
252b5132 RH |
49 | ${RELOCATING+ _edata = . ; } |
50 | } ${RELOCATING+ > ram} | |
51 | .bss : | |
52 | { | |
53 | ${RELOCATING+ _bss_start = . ; } | |
54 | *(.bss) | |
55 | *(COMMON) | |
56 | ${RELOCATING+ _end = . ; } | |
57 | } ${RELOCATING+ > ram} | |
58 | .stack ${RELOCATING+ 0x30000 } : | |
59 | { | |
60 | ${RELOCATING+ _stack = . ; } | |
61 | *(.stack) | |
62 | } ${RELOCATING+ > ram} | |
63 | .stab 0 ${RELOCATING+(NOLOAD)} : | |
64 | { | |
65 | *(.stab) | |
66 | } | |
67 | .stabstr 0 ${RELOCATING+(NOLOAD)} : | |
68 | { | |
69 | *(.stabstr) | |
70 | } | |
71 | } | |
72 | EOF | |
73 | ||
74 | ||
75 | ||
76 |