* scripttempl/h8500s.sc (.rdata): All data must go in data segment.
[deliverable/binutils-gdb.git] / ld / scripttempl / armpe.sc
1 # Linker script for ARM PE.
2 # These are substituted in as variables in order to get '}' in a shell
3 # conditional expansion.
4 INIT='.init : { *(.init) }'
5 FINI='.fini : { *(.fini) }'
6 cat <<EOF
7 OUTPUT_FORMAT($OUTPUT_FORMAT)
8 ${LIB_SEARCH_DIRS}
9
10 ENTRY(_mainCRTStartup)
11
12 SECTIONS
13 {
14 .text 0x401000 :
15 {
16 ${RELOCATING+ *(.init);}
17 *(.text)
18 ${RELOCATING+ *(.fini);}
19 ${RELOCATING+ etext = .};
20 }
21
22
23 .rdata BLOCK(0x1000) :
24 {
25 *(.rdata)
26 ${CONSTRUCTING+ __CTOR_LIST__ = .; LONG (-1); *(.ctors); LONG (0); }
27 ${CONSTRUCTING+ __DTOR_LIST__ = .; LONG (-1); *(.dtors); LONG (0); }
28 ;
29 }
30 .data BLOCK(0x1000) : {
31 *(.data)
32 *(.data2)
33 ;
34 }
35 .idata BLOCK(0x1000) :
36 {
37 *(.idata\$2)
38 *(.idata\$3)
39 *(.idata\$4)
40 *(.idata\$5)
41 *(.idata\$6)
42 *(.idata\$7)
43 ;
44 }
45
46 .CRT BLOCK(0x1000) :
47 {
48 *(.CRT\$XCA)
49 *(.CRT\$XCC)
50 *(.CRT\$XCZ)
51 *(.CRT\$XIA)
52 *(.CRT\$XIC)
53 *(.CRT\$XIZ)
54 *(.CRT\$XLA)
55 *(.CRT\$XLZ)
56 *(.CRT\$XPA)
57 *(.CRT\$XPX)
58 *(.CRT\$XPZ)
59 *(.CRT\$XTA)
60 *(.CRT\$XTZ)
61 ;
62 }
63 .rsrc BLOCK(0x1000) :
64 {
65 *(.rsrc\$01)
66 *(.rsrc\$02)
67 ;
68 }
69 .reloc BLOCK(0x1000) :
70 {
71 *(.reloc)
72 ;
73 }
74
75 .drectve BLOCK (0x1000) :
76 {
77 ${RELOCATING+ *(.drectve); }
78 }
79 .junk BLOCK(0x1000) :
80 {
81 *(.debug\$S)
82 *(.debug\$T)
83 *(.debug\$F)
84 ;
85 }
86
87
88 .bss BLOCK(0x1000) :
89 {
90 *(.bss)
91 *(COMMON);
92 end = . ;
93 }
94
95 .stab 0 :
96 {
97 [ .stab ]
98 }
99
100 .stabstr 0 :
101 {
102 [ .stabstr ]
103 }
104
105 ${RELOCATING+ stack = 0x800000 ;}
106 }
107 EOF
This page took 0.032126 seconds and 4 git commands to generate.