This commit was generated by cvs2svn to track changes on a CVS vendor
[deliverable/binutils-gdb.git] / ld / scripttempl / i386go32.sc
1 # Linker script for i386 go32 (DJGPP)
2
3 test -z "$ENTRY" && ENTRY=start
4 EXE=${CONSTRUCTING+${RELOCATING+-exe}}
5
6 # These are substituted in as variables in order to get '}' in a shell
7 # conditional expansion.
8 CTOR='.ctor : { *(.ctor) }'
9 DTOR='.dtor : { *(.dtor) }'
10
11 cat <<EOF
12 OUTPUT_FORMAT("${OUTPUT_FORMAT}${EXE}")
13
14 ENTRY(${ENTRY})
15
16 SECTIONS
17 {
18 .text ${RELOCATING+ ${TARGET_PAGE_SIZE}+SIZEOF_HEADERS} : {
19 *(.text)
20 ${RELOCATING+*(.gnu.linkonce.t*)}
21 *(.const*)
22 *(.ro*)
23 ${RELOCATING+*(.gnu.linkonce.r*)}
24 ${RELOCATING+etext = . ; _etext = . ;}
25 ${RELOCATING+. = ALIGN(${SEGMENT_SIZE});}
26 }
27 .data ${RELOCATING+ ${DATA_ALIGNMENT}} : {
28 ${RELOCATING+djgpp_first_ctor = . ;
29 *(.ctor)
30 djgpp_last_ctor = . ;}
31 ${RELOCATING+djgpp_first_dtor = . ;
32 *(.dtor)
33 djgpp_last_dtor = . ;}
34 *(.data)
35
36 ${RELOCATING+*(.gcc_exc*)}
37 ${RELOCATING+___EH_FRAME_BEGIN__ = . ;}
38 ${RELOCATING+*(.eh_fram*)}
39 ${RELOCATING+___EH_FRAME_END__ = . ;}
40 ${RELOCATING+LONG(0);}
41
42 ${RELOCATING+*(.gnu.linkonce.d*)}
43 ${RELOCATING+edata = . ; _edata = . ;}
44 ${RELOCATING+. = ALIGN(${SEGMENT_SIZE});}
45 }
46 ${CONSTRUCTING+${RELOCATING-$CTOR}}
47 ${CONSTRUCTING+${RELOCATING-$DTOR}}
48 .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
49 {
50 *(.bss)
51 *(COMMON)
52 ${RELOCATING+ end = . ; _end = . ;}
53 ${RELOCATING+ . = ALIGN(${SEGMENT_SIZE});}
54 }
55 }
56 EOF
This page took 0.033546 seconds and 5 git commands to generate.