Fri Jan 30 19:15:17 1998 Geoff Keating <geoffk@ozemail.com.au>
[deliverable/binutils-gdb.git] / ld / scripttempl / go32coff.sc
CommitLineData
c06e55d9
KR
1# Linker script for 386 go32
2# DJ Delorie (dj@ctron.com)
3
0128cbae 4test -z "$ENTRY" && ENTRY=start
6149af09
SC
5cat <<EOF
6OUTPUT_FORMAT("${OUTPUT_FORMAT}")
7${LIB_SEARCH_DIRS}
8
9ENTRY(${ENTRY})
10
11SECTIONS
12{
0128cbae 13 .text ${RELOCATING+ 0x1000+SIZEOF_HEADERS} : {
6149af09 14 *(.text)
0128cbae
KR
15 ${RELOCATING+ etext = . ; _etext = .};
16 ${RELOCATING+ . = ALIGN(0x200);}
6149af09 17 }
62a4b36c 18 .data ${RELOCATING+ ${DATA_ALIGNMENT}} : {
c06e55d9
KR
19 ${RELOCATING+ *(.ctor)}
20 ${RELOCATING+ *(.dtor)}
21 *(.data)
0128cbae
KR
22 ${RELOCATING+ edata = . ; _edata = .};
23 ${RELOCATING+ . = ALIGN(0x200);}
6149af09
SC
24 }
25 .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
26 {
27 *(.bss)
28 *(COMMON)
0128cbae
KR
29 ${RELOCATING+ end = . ; _end = .};
30 ${RELOCATING+ . = ALIGN(0x200);}
6149af09 31 }
6149af09
SC
32}
33EOF
This page took 0.123646 seconds and 4 git commands to generate.