Commit | Line | Data |
---|---|---|
ab57b174 ILT |
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) | |
9de4d8f1 ILT |
18 | ${RELOCATING+ etext = .;} |
19 | ${CONSTRUCTING+ __CTOR_LIST__ = .;} | |
20 | ${CONSTRUCTING+ LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)} | |
21 | *(.ctors) | |
22 | ${CONSTRUCTING+ LONG(0)} | |
23 | ${CONSTRUCTING+ __CTOR_END__ = .;} | |
24 | ${CONSTRUCTING+ __DTOR_LIST__ = .;} | |
25 | ${CONSTRUCTING+ LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)} | |
26 | *(.dtors) | |
27 | ${CONSTRUCTING+ LONG(0)} | |
28 | ${CONSTRUCTING+ __DTOR_END__ = .;} | |
ab57b174 ILT |
29 | *(.lit) |
30 | *(.shdata) | |
31 | } ${RELOCATING+ > text} | |
32 | .shbss SIZEOF(.text) + ADDR(.text) : { | |
33 | *(.shbss) | |
34 | } | |
35 | .talias : { } ${RELOCATING+ > talias} | |
36 | .data : { | |
37 | *(.data) | |
668f26b5 | 38 | ${RELOCATING+ edata = .}; |
ab57b174 ILT |
39 | } ${RELOCATING+ > data} |
40 | .bss SIZEOF(.data) + ADDR(.data) : | |
41 | { | |
b5ddf942 | 42 | ${RELOCATING+ __bss_start = .}; |
ab57b174 ILT |
43 | *(.bss) |
44 | *(COMMON) | |
668f26b5 | 45 | ${RELOCATING+ end = ALIGN(0x8)}; |
a70947c1 | 46 | ${RELOCATING+ _end = ALIGN(0x8)}; |
ab57b174 ILT |
47 | } |
48 | .mstack : { } ${RELOCATING+ > mstack} | |
49 | .rstack : { } ${RELOCATING+ > rstack} | |
50 | } | |
51 | EOF |