Commit | Line | Data |
---|---|---|
8b351884 TG |
1 | # Linker script for Alpha VMS systems. |
2 | # Tristan Gingold <gingold@adacore.com>. | |
3 | ||
4 | PAGESIZE=0x10000 | |
5 | ||
6 | cat <<EOF | |
7 | OUTPUT_FORMAT("${OUTPUT_FORMAT}") | |
8 | ${LIB_SEARCH_DIRS} | |
9 | ||
10 | SECTIONS | |
11 | { | |
12 | ${RELOCATING+. = ${PAGESIZE};} | |
13 | ||
46d00b8a | 14 | /* RW initialized data. */ |
8b351884 TG |
15 | \$DATA\$ ALIGN (${PAGESIZE}) : { |
16 | *(\$DATA\$) | |
8b351884 | 17 | } |
46d00b8a | 18 | /* RW data unmodified (zero-initialized). */ |
8b351884 TG |
19 | \$BSS\$ ALIGN (${PAGESIZE}) : { |
20 | *(\$BSS\$) | |
21 | } | |
46d00b8a | 22 | /* RO, executable code. */ |
8b351884 | 23 | \$CODE\$ ALIGN (${PAGESIZE}) : { |
55221e4b | 24 | *(\$CODE\$ *\$CODE*) |
8b351884 | 25 | } |
46d00b8a | 26 | /* RO initialized data. */ |
8b351884 | 27 | \$LITERAL\$ ALIGN (${PAGESIZE}) : { |
46d00b8a | 28 | *(\$LINK\$) |
8b351884 TG |
29 | *(\$LITERAL\$) |
30 | *(\$READONLY\$) | |
31 | *(\$READONLY_ADDR\$) | |
46d00b8a TG |
32 | *(eh_frame) |
33 | *(jcr) | |
34 | *(ctors) | |
35 | *(dtors) | |
36 | *(gcc_except_table) | |
37 | ||
38 | /* LIB$INITIALIZE stuff. */ | |
39 | *(LIB\$INITIALIZDZ) /* Start marker. */ | |
40 | *(LIB\$INITIALIZD_) /* Hi priority. */ | |
41 | *(LIB\$INITIALIZE) /* User. */ | |
42 | *(LIB\$INITIALIZE$) /* End marker. */ | |
8b351884 TG |
43 | } |
44 | ||
9165b2bf TG |
45 | \$DWARF\$ ALIGN (${PAGESIZE}) : { |
46 | \$dwarf2.debug_pubtypes = .; | |
47 | *(debug_pubtypes) | |
48 | \$dwarf2.debug_ranges = .; | |
49 | *(debug_ranges) | |
50 | ||
51 | \$dwarf2.debug_abbrev = .; | |
52 | *(debug_abbrev) | |
53 | \$dwarf2.debug_aranges = .; | |
54 | *(debug_aranges) | |
55 | \$dwarf2.debug_frame = .; | |
56 | *(debug_frame) | |
57 | \$dwarf2.debug_info = .; | |
58 | *(debug_info) | |
59 | \$dwarf2.debug_line = .; | |
60 | *(debug_line) | |
61 | \$dwarf2.debug_loc = .; | |
62 | *(debug_loc) | |
63 | \$dwarf2.debug_macinfo = .; | |
64 | *(debug_macinfo) | |
65 | \$dwarf2.debug_pubnames = .; | |
66 | *(debug_pubnames) | |
67 | \$dwarf2.debug_str = .; | |
68 | *(debug_str) | |
69 | \$dwarf2.debug_zzzzzz = .; | |
70 | } | |
71 | ||
8b351884 TG |
72 | \$DST\$ 0 : { |
73 | *(\$DST\$) | |
74 | } | |
75 | } | |
76 | EOF |