Commit | Line | Data |
---|---|---|
8b351884 TG |
1 | # Linker script for Alpha VMS systems. |
2 | # Tristan Gingold <gingold@adacore.com>. | |
985743c7 | 3 | # |
219d1afa | 4 | # Copyright (C) 2014-2018 Free Software Foundation, Inc. |
6c19b93b | 5 | # |
985743c7 NC |
6 | # Copying and distribution of this file, with or without modification, |
7 | # are permitted in any medium without royalty provided the copyright | |
8 | # notice and this notice are preserved. | |
8b351884 TG |
9 | |
10 | PAGESIZE=0x10000 | |
11 | ||
12 | cat <<EOF | |
219d1afa | 13 | /* Copyright (C) 2014-2018 Free Software Foundation, Inc. |
985743c7 NC |
14 | |
15 | Copying and distribution of this script, with or without modification, | |
16 | are permitted in any medium without royalty provided the copyright | |
17 | notice and this notice are preserved. */ | |
18 | ||
8b351884 TG |
19 | OUTPUT_FORMAT("${OUTPUT_FORMAT}") |
20 | ${LIB_SEARCH_DIRS} | |
21 | ||
22 | SECTIONS | |
23 | { | |
24 | ${RELOCATING+. = ${PAGESIZE};} | |
25 | ||
46d00b8a | 26 | /* RW initialized data. */ |
8b351884 TG |
27 | \$DATA\$ ALIGN (${PAGESIZE}) : { |
28 | *(\$DATA\$) | |
8b351884 | 29 | } |
46d00b8a | 30 | /* RW data unmodified (zero-initialized). */ |
8b351884 TG |
31 | \$BSS\$ ALIGN (${PAGESIZE}) : { |
32 | *(\$BSS\$) | |
33 | } | |
46d00b8a | 34 | /* RO, executable code. */ |
8b351884 | 35 | \$CODE\$ ALIGN (${PAGESIZE}) : { |
55221e4b | 36 | *(\$CODE\$ *\$CODE*) |
8b351884 | 37 | } |
46d00b8a | 38 | /* RO initialized data. */ |
8b351884 | 39 | \$LITERAL\$ ALIGN (${PAGESIZE}) : { |
46d00b8a | 40 | *(\$LINK\$) |
8b351884 TG |
41 | *(\$LITERAL\$) |
42 | *(\$READONLY\$) | |
43 | *(\$READONLY_ADDR\$) | |
46d00b8a TG |
44 | *(eh_frame) |
45 | *(jcr) | |
46 | *(ctors) | |
47 | *(dtors) | |
48 | *(gcc_except_table) | |
49 | ||
50 | /* LIB$INITIALIZE stuff. */ | |
51 | *(LIB\$INITIALIZDZ) /* Start marker. */ | |
52 | *(LIB\$INITIALIZD_) /* Hi priority. */ | |
53 | *(LIB\$INITIALIZE) /* User. */ | |
54 | *(LIB\$INITIALIZE$) /* End marker. */ | |
8b351884 TG |
55 | } |
56 | ||
9165b2bf TG |
57 | \$DWARF\$ ALIGN (${PAGESIZE}) : { |
58 | \$dwarf2.debug_pubtypes = .; | |
59 | *(debug_pubtypes) | |
60 | \$dwarf2.debug_ranges = .; | |
61 | *(debug_ranges) | |
62 | ||
63 | \$dwarf2.debug_abbrev = .; | |
64 | *(debug_abbrev) | |
65 | \$dwarf2.debug_aranges = .; | |
66 | *(debug_aranges) | |
67 | \$dwarf2.debug_frame = .; | |
68 | *(debug_frame) | |
69 | \$dwarf2.debug_info = .; | |
70 | *(debug_info) | |
71 | \$dwarf2.debug_line = .; | |
72 | *(debug_line) | |
73 | \$dwarf2.debug_loc = .; | |
74 | *(debug_loc) | |
75 | \$dwarf2.debug_macinfo = .; | |
76 | *(debug_macinfo) | |
2a995fc1 NC |
77 | \$dwarf2.debug_macro = .; |
78 | *(debug_macro) | |
9165b2bf TG |
79 | \$dwarf2.debug_pubnames = .; |
80 | *(debug_pubnames) | |
81 | \$dwarf2.debug_str = .; | |
82 | *(debug_str) | |
83 | \$dwarf2.debug_zzzzzz = .; | |
84 | } | |
85 | ||
8b351884 TG |
86 | \$DST\$ 0 : { |
87 | *(\$DST\$) | |
88 | } | |
89 | } | |
90 | EOF |