Commit | Line | Data |
---|---|---|
e92bddcd SC |
1 | # This is totally made up, from the a29k stuff. If you know better, |
2 | # tell us about it. | |
3 | cat <<EOF | |
4 | OUTPUT_FORMAT("${OUTPUT_FORMAT}") | |
5 | ${LIB_SEARCH_DIRS} | |
6 | ||
7 | MEMORY { | |
8 | text : ORIGIN = 0x1000000, LENGTH = 0x1000000 | |
9 | talias : ORIGIN = 0x2000000, LENGTH = 0x1000000 | |
10 | data : ORIGIN = 0x3000000, LENGTH = 0x1000000 | |
11 | mstack : ORIGIN = 0x4000000, LENGTH = 0x1000000 | |
12 | rstack : ORIGIN = 0x5000000, LENGTH = 0x1000000 | |
13 | } | |
14 | SECTIONS | |
15 | { | |
16 | .text : { | |
17 | *(.text) | |
18 | ${RELOCATING+ _etext = .}; | |
19 | *(.lit) | |
20 | *(.shdata) | |
21 | } ${RELOCATING+ > text} | |
22 | .shbss SIZEOF(.text) + ADDR(.text) : { | |
23 | *(.shbss) | |
24 | } | |
25 | .talias : { } ${RELOCATING+ > talias} | |
26 | .data : { | |
27 | *(.data) | |
28 | ${RELOCATING+ _edata = .}; | |
29 | } ${RELOCATING+ > data} | |
30 | .bss SIZEOF(.data) + ADDR(.data) : | |
31 | { | |
32 | *(.bss) | |
33 | *(COMMON) | |
34 | ${RELOCATING+ _end = ALIGN(0x8)}; | |
35 | } | |
36 | .mstack : { } ${RELOCATING+ > mstack} | |
37 | .rstack : { } ${RELOCATING+ > rstack} | |
38 | } | |
39 | EOF |