Commit | Line | Data |
---|---|---|
82704155 | 1 | # Copyright (C) 2014-2019 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 = . ; | |
2bf2bf23 | 15 | }${RELOCATING+ > ram}" |
252b5132 RH |
16 | |
17 | cat <<EOF | |
82704155 | 18 | /* Copyright (C) 2014-2019 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 | ||
2bf2bf23 AM |
27 | EOF |
28 | ||
29 | test -n "${RELOCATING}" && cat <<EOF | |
252b5132 RH |
30 | MEMORY |
31 | { | |
32 | ram : o = 0x1000, l = 512k | |
33 | } | |
34 | ||
2bf2bf23 AM |
35 | EOF |
36 | ||
37 | cat <<EOF | |
252b5132 RH |
38 | SECTIONS |
39 | { | |
40 | .text : | |
41 | { | |
42 | *(.text) | |
43 | *(.strings) | |
44 | ${RELOCATING+ _etext = . ; } | |
45 | } ${RELOCATING+ > ram} | |
46 | ${CONSTRUCTING+${TORS}} | |
47 | .data : | |
48 | { | |
49 | *(.data) | |
ff326826 DJ |
50 | ${RELOCATING+*(.gcc_exc*)} |
51 | ${RELOCATING+___EH_FRAME_BEGIN__ = . ;} | |
52 | ${RELOCATING+*(.eh_fram*)} | |
53 | ${RELOCATING+___EH_FRAME_END__ = . ;} | |
54 | ${RELOCATING+LONG(0);} | |
252b5132 RH |
55 | ${RELOCATING+ _edata = . ; } |
56 | } ${RELOCATING+ > ram} | |
57 | .bss : | |
58 | { | |
59 | ${RELOCATING+ _bss_start = . ; } | |
60 | *(.bss) | |
61 | *(COMMON) | |
62 | ${RELOCATING+ _end = . ; } | |
63 | } ${RELOCATING+ > ram} | |
64 | .stack ${RELOCATING+ 0x30000 } : | |
65 | { | |
66 | ${RELOCATING+ _stack = . ; } | |
67 | *(.stack) | |
68 | } ${RELOCATING+ > ram} | |
69 | .stab 0 ${RELOCATING+(NOLOAD)} : | |
70 | { | |
71 | *(.stab) | |
72 | } | |
73 | .stabstr 0 ${RELOCATING+(NOLOAD)} : | |
74 | { | |
75 | *(.stabstr) | |
76 | } | |
77 | } | |
78 | EOF | |
79 | ||
80 | ||
81 | ||
82 |