Tue Oct 20 10:56:06 1992 Ian Lance Taylor (ian@cygnus.com)
[deliverable/binutils-gdb.git] / ld / i386coff.sc-sh
CommitLineData
e9b63852
ILT
1# Linker script for 386 COFF. This works on SVR3.2 and SCO Unix 3.2.2.
2# .data2 handles SCO, which uses two data sections.
3# Ian Taylor <ian@cygnus.com>.
e92bddcd
SC
4cat <<EOF
5OUTPUT_FORMAT("${OUTPUT_FORMAT}")
6${LIB_SEARCH_DIRS}
7
e9b63852
ILT
8ENTRY(_start)
9
e92bddcd
SC
10SECTIONS
11{
e9b63852
ILT
12 .text ${RELOCATING+ SIZEOF_HEADERS} : {
13 *(.init)
e92bddcd 14 *(.text)
e9b63852
ILT
15 *(.fini)
16 ${RELOCATING+ etext = .};
17 }
18 .data ${RELOCATING+ 0x400000 + (. & 0xffc00fff)} : {
19 *(.data .data2)
20 ${RELOCATING+ edata = .};
21 }
22 .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
e92bddcd 23 {
e9b63852
ILT
24 *(.bss)
25 *(COMMON)
26 ${RELOCATING+ end = .};
e92bddcd 27 }
e92bddcd
SC
28}
29EOF
This page took 0.02556 seconds and 4 git commands to generate.