1 # Linker script for Itanium VMS systems.
2 # Tristan Gingold <gingold@adacore.com>.
4 # Copyright (C) 2014-2020 Free Software Foundation, Inc.
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.
10 # Using an empty script for ld -r is better than mashing together
11 # sections. This hack likely leaves ld -Ur broken.
12 test -n "${RELOCATING}" || exit 0
18 /* Copyright (C) 2014-2020 Free Software Foundation, Inc.
20 Copying and distribution of this script, with or without modification,
21 are permitted in any medium without royalty provided the copyright
22 notice and this notice are preserved. */
24 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
31 ${RELOCATING+. = ${PAGESIZE};}
33 \$DATA\$ ALIGN (${BLOCKSIZE}) : {
34 *(\$DATA\$ .data .data.*)
35 *(\$BSS\$ .bss .bss.*)
38 /* Code segment. Note: name must be \$CODE\$ */
39 ${RELOCATING+. = ALIGN (${PAGESIZE});}
41 \$CODE\$ ALIGN (${BLOCKSIZE}) : {
42 *(\$CODE\$ .text .text.*)
49 ${RELOCATING+. = ALIGN (${PAGESIZE});}
51 /* RO initialized data. */
52 \$LITERAL\$ ALIGN (${BLOCKSIZE}) : {
54 *(\$READONLY\$ .rodata .rodata.*)
61 /* LIB$INITIALIZE stuff. */
62 *(LIB\$INITIALIZDZ) /* Start marker. */
63 *(LIB\$INITIALIZD_) /* Hi priority. */
64 *(LIB\$INITIALIZE) /* User. */
65 *(LIB\$INITIALIZE$) /* End marker. */
69 ${RELOCATING+. = ALIGN (${PAGESIZE});}
72 *(.srodata .srodata.*)
77 .IA_64.pltoff ALIGN (16) : {
80 \$TFR\$ ALIGN (16) : {
81 /* Transfer vector. */
86 ${RELOCATING+. = ALIGN (${PAGESIZE});}
88 \$RW_SHORT\$ ALIGN (${BLOCKSIZE}) : {
93 ${RELOCATING+. = ALIGN (${PAGESIZE});}
95 .IA_64.unwind ALIGN (${BLOCKSIZE}) : {
96 *(.IA_64.unwind .IA_64.unwind.*)
99 .IA_64.unwind_info ALIGN (8) : {
100 *(.IA_64.unwind_info .IA_64.unwind_info.*)
103 ${RELOCATING+. = ALIGN (${PAGESIZE});}
105 .dynamic /* \$DYNAMIC\$ */ ALIGN (${BLOCKSIZE}) : {
111 ${RELOCATING+. = ALIGN (${PAGESIZE});}
113 .dynstr : { *(.dynstr) }
115 .dynsym ${RELOCATING-0} : { *(.dynsym) }
116 .rela.got : { *(.rela.got) }
117 .got.plt : { *(.got.plt) }
118 .gnu.version_d : { *(.gnu.version_d) }
119 .gnu.version : { *(.gnu.version) }
120 .gnu.version_r : { *(.gnu.version_r) }
121 .rela.IA_64.pltoff : { *(.rela.IA_64.pltoff) }
125 . $srcdir/scripttempl/DWARF.sc
128 .note : { *(.vms.note) }
130 /DISCARD/ : { *(.note) *(.vms_display_name_info) }