OSDN Git Service

Initial revision
[pf3gnuchains/pf3gnuchains4x.git] / ld / scripttempl / go32coff.sc
1 # Linker script for 386 go32
2 # DJ Delorie (dj@ctron.com)
3
4 test -z "$ENTRY" && ENTRY=start
5 cat <<EOF
6 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
7 ${LIB_SEARCH_DIRS}
8
9 ENTRY(${ENTRY})
10
11 SECTIONS
12 {
13   .text ${RELOCATING+ 0x1000+SIZEOF_HEADERS} : {
14     *(.text)
15     ${RELOCATING+ etext  =  . ; _etext = .};
16     ${RELOCATING+ . = ALIGN(0x200);}
17   }
18   .data ${RELOCATING+ ${DATA_ALIGNMENT}} : {
19     ${RELOCATING+ *(.ctor)}
20     ${RELOCATING+ *(.dtor)}
21     *(.data)
22     ${RELOCATING+ edata  =  . ; _edata = .};
23     ${RELOCATING+ . = ALIGN(0x200);}
24   }
25   .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
26   {                                     
27     *(.bss)
28     *(COMMON)
29     ${RELOCATING+ end = . ; _end = .};
30     ${RELOCATING+ . = ALIGN(0x200);}
31   }
32 }
33 EOF