Add new binutils target: moxie
[deliverable/binutils-gdb.git] / ld / scripttempl / moxie.sc
1 TORS=".tors :
2 {
3 ___ctors = . ;
4 *(.ctors)
5 ___ctors_end = . ;
6 ___dtors = . ;
7 *(.dtors)
8 ___dtors_end = . ;
9 } > ram"
10
11 cat <<EOF
12 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
13 OUTPUT_ARCH(${ARCH})
14
15 SECTIONS
16 {
17 .text :
18 {
19 *(.text)
20 .init : { KEEP (*(.init)) } =0
21 .fini : { KEEP (*(.fini)) } =0
22 *(.strings)
23 ${RELOCATING+ _etext = . ; }
24 } ${RELOCATING+ > ram}
25 ${CONSTRUCTING+${TORS}}
26 .data :
27 {
28 *(.data)
29 ${RELOCATING+ _edata = . ; }
30 } ${RELOCATING+ > ram}
31 .bss :
32 {
33 ${RELOCATING+ _bss_start = . ; }
34 *(.bss)
35 *(COMMON)
36 ${RELOCATING+ _end = . ; }
37 } ${RELOCATING+ > ram}
38 .stack ${RELOCATING+ 0x30000 } :
39 {
40 ${RELOCATING+ _stack = . ; }
41 *(.stack)
42 } ${RELOCATING+ > ram}
43 .stab 0 ${RELOCATING+(NOLOAD)} :
44 {
45 *(.stab)
46 }
47 .stabstr 0 ${RELOCATING+(NOLOAD)} :
48 {
49 *(.stabstr)
50 }
51 }
52 EOF
This page took 0.033684 seconds and 4 git commands to generate.