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