Commit | Line | Data |
---|---|---|
c06e55d9 KR |
1 | # Linker script for 386 go32 |
2 | # DJ Delorie (dj@ctron.com) | |
3 | ||
0128cbae | 4 | test -z "$ENTRY" && ENTRY=start |
6149af09 SC |
5 | cat <<EOF |
6 | OUTPUT_FORMAT("${OUTPUT_FORMAT}") | |
7 | ${LIB_SEARCH_DIRS} | |
8 | ||
9 | ENTRY(${ENTRY}) | |
10 | ||
11 | SECTIONS | |
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 | } |
33 | EOF |