1 # Linker script for Itanium VMS systems.
2 # Tristan Gingold <gingold@adacore.com>.
4 # Copyright (C) 2014-2016 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.
14 /* Copyright (C) 2014-2016 Free Software Foundation, Inc.
16 Copying and distribution of this script, with or without modification,
17 are permitted in any medium without royalty provided the copyright
18 notice and this notice are preserved. */
20 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
27 ${RELOCATING+. = ${PAGESIZE};}
29 \$DATA\$ ALIGN (${BLOCKSIZE}) : {
30 *(\$DATA\$ .data .data.*)
31 *(\$BSS\$ .bss .bss.*)
34 /* Code segment. Note: name must be \$CODE\$ */
35 ${RELOCATING+. = ALIGN (${PAGESIZE});}
37 \$CODE\$ ALIGN (${BLOCKSIZE}) : {
38 *(\$CODE\$ .text .text.*)
45 ${RELOCATING+. = ALIGN (${PAGESIZE});}
47 /* RO initialized data. */
48 \$LITERAL\$ ALIGN (${BLOCKSIZE}) : {
50 *(\$READONLY\$ .rodata .rodata.*)
57 /* LIB$INITIALIZE stuff. */
58 *(LIB\$INITIALIZDZ) /* Start marker. */
59 *(LIB\$INITIALIZD_) /* Hi priority. */
60 *(LIB\$INITIALIZE) /* User. */
61 *(LIB\$INITIALIZE$) /* End marker. */
65 ${RELOCATING+. = ALIGN (${PAGESIZE});}
68 *(.srodata .srodata.*)
73 .IA_64.pltoff ALIGN (16) : {
76 \$TFR\$ ALIGN (16) : {
77 /* Transfer vector. */
82 ${RELOCATING+. = ALIGN (${PAGESIZE});}
84 \$RW_SHORT\$ ALIGN (${BLOCKSIZE}) : {
89 ${RELOCATING+. = ALIGN (${PAGESIZE});}
91 .IA_64.unwind ALIGN (${BLOCKSIZE}) : {
92 *(.IA_64.unwind .IA_64.unwind.*)
95 .IA_64.unwind_info ALIGN (8) : {
96 *(.IA_64.unwind_info .IA_64.unwind_info.*)
99 ${RELOCATING+. = ALIGN (${PAGESIZE});}
101 .dynamic /* \$DYNAMIC\$ */ ALIGN (${BLOCKSIZE}) : {
107 ${RELOCATING+. = ALIGN (${PAGESIZE});}
109 .dynstr : { *(.dynstr) }
111 .dynsym ${RELOCATING-0} : { *(.dynsym) }
112 .rela.got : { *(.rela.got) }
113 .got.plt : { *(.got.plt) }
114 .gnu.version_d : { *(.gnu.version_d) }
115 .gnu.version : { *(.gnu.version) }
116 .gnu.version_r : { *(.gnu.version_r) }
117 .rela.IA_64.pltoff : { *(.rela.IA_64.pltoff) }
121 . $srcdir/scripttempl/DWARF.sc
124 .note : { *(.vms.note) }
126 /DISCARD/ : { *(.note) *(.vms_display_name_info) }