Fri May 12 11:03:55 1995 Steve Chamberlain <sac@slash.cygnus.com>
[deliverable/binutils-gdb.git] / ld / scripttempl / i386pe.sc
1 # Linker script for 386 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
15 .text ${RELOCATING+ 0x401000} :
16 {
17 ${RELOCATING+ *(.init);}
18 *(.text)
19 ${RELOCATING+ *(.fini);}
20 ${RELOCATING+ etext = .};
21 }
22
23 .bss BLOCK(0x1000) :
24 {
25 *(.bss)
26 *(COMMON);
27 }
28
29 .rdata BLOCK(0x1000) :
30 {
31 *(.rdata)
32 ;
33 }
34 .data BLOCK(0x1000) : {
35 *(.data)
36 *(.data2)
37 ;
38 }
39 .idata BLOCK(0x1000) :
40 {
41 *(.idata$2)
42 *(.idata$3)
43 *(.idata$4)
44 *(.idata$5)
45 *(.idata$6)
46 *(.idata$7)
47 ;
48 }
49 .CRT BLOCK(0x1000) :
50 {
51 *(.CRT$XCA)
52 *(.CRT$XCC)
53 *(.CRT$XCZ)
54 *(.CRT$XIA)
55 *(.CRT$XIC)
56 *(.CRT$XIZ)
57 *(.CRT$XLA)
58 *(.CRT$XLZ)
59 *(.CRT$XPA)
60 *(.CRT$XPX)
61 *(.CRT$XPZ)
62 *(.CRT$XTA)
63 *(.CRT$XTZ)
64 ;
65 }
66 .rsrc BLOCK(0x1000) :
67 {
68 *(.rsrc$01)
69 *(.rsrc$02)
70 ;
71 }
72 .reloc BLOCK(0x1000) :
73 {
74 *(.reloc)
75 ;
76 }
77 .junk BLOCK(0x1000) :
78 {
79 *(.debug$S)
80 *(.debug$T)
81 *(.debug$F)
82 *(.drectve)
83 ;
84 }
85 .stab 0 ${RELOCATING+(NOLOAD)} :
86 {
87 [ .stab ]
88 }
89
90 .stabstr 0 ${RELOCATING+(NOLOAD)} :
91 {
92 [ .stabstr ]
93 }
94 }
95 EOF
This page took 0.034637 seconds and 4 git commands to generate.