Commit | Line | Data |
---|---|---|
42f9673d ILT |
1 | # Linker script for Alpha systems. |
2 | # Ian Lance Taylor <ian@cygnus.com>. | |
3 | # These variables may be overridden by the emulation file. The | |
4 | # defaults are appropriate for an Alpha running OSF/1. | |
5 | test -z "$ENTRY" && ENTRY=__start | |
6 | test -z "$TEXT_START_ADDR" && TEXT_START_ADDR="0x120000000 + SIZEOF_HEADERS" | |
7 | test -z "$DATA_ADDR" && DATA_ADDR=0x140000000 | |
8 | cat <<EOF | |
9 | OUTPUT_FORMAT("${OUTPUT_FORMAT}") | |
10 | ${LIB_SEARCH_DIRS} | |
11 | ||
12 | ENTRY(${ENTRY}) | |
13 | ||
14 | SECTIONS | |
15 | { | |
16 | .text ${RELOCATING+ ${TEXT_START_ADDR}} : { | |
17 | ${RELOCATING+ _FTEXT = . }; | |
18 | ${RELOCATING+ __istart = . }; | |
19 | ${RELOCATING+ *(.init) } | |
20 | ${RELOCATING+ LONG (0x6bfa8001)} | |
21 | ${RELOCATING+ eprol = .}; | |
22 | *(.text) | |
23 | ${RELOCATING+ __fstart = . }; | |
24 | ${RELOCATING+ *(.fini)} | |
25 | ${RELOCATING+ LONG (0x6bfa8001)} | |
26 | ${RELOCATING+ _ETEXT = .}; | |
27 | } | |
28 | .rdata ${RELOCATING+ .} : { | |
29 | *(.rdata) | |
30 | } | |
31 | .pdata . : { | |
32 | ${RELOCATING+ _fpdata = .;} | |
33 | *(.pdata) | |
34 | } | |
35 | .data ${RELOCATING+ ${DATA_ADDR}} : { | |
36 | ${RELOCATING+ _FDATA = .;} | |
37 | *(.data) | |
38 | ${CONSTRUCTING+CONSTRUCTORS} | |
39 | } | |
40 | .xdata . : { | |
41 | *(.xdata) | |
42 | } | |
43 | ${RELOCATING+ _gp = ALIGN (8) + 0x8000;} | |
44 | .lit8 ${RELOCATING+ .} : { | |
45 | *(.lit8) | |
46 | } | |
47 | .lit4 ${RELOCATING+ .} : { | |
48 | *(.lit4) | |
49 | } | |
50 | .lita ${RELOCATING+ .} : { | |
51 | *(.lita) | |
52 | } | |
53 | .sdata ${RELOCATING+ .} : { | |
54 | *(.sdata) | |
55 | } | |
56 | ${RELOCATING+ _EDATA = .;} | |
57 | ${RELOCATING+ _FBSS = .;} | |
58 | .sbss ${RELOCATING+ .} : { | |
59 | *(.sbss) | |
60 | *(.scommon) | |
61 | } | |
62 | .bss ${RELOCATING+ .} : { | |
63 | *(.bss) | |
64 | *(COMMON) | |
65 | } | |
66 | ${RELOCATING+ _END = .;} | |
67 | ${RELOCATING+ _end = .;} | |
68 | } | |
69 | EOF |