aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl/alphavms.sc
diff options
context:
space:
mode:
Diffstat (limited to 'ld/scripttempl/alphavms.sc')
-rw-r--r--ld/scripttempl/alphavms.sc34
1 files changed, 34 insertions, 0 deletions
diff --git a/ld/scripttempl/alphavms.sc b/ld/scripttempl/alphavms.sc
new file mode 100644
index 0000000..ed4ec68
--- /dev/null
+++ b/ld/scripttempl/alphavms.sc
@@ -0,0 +1,34 @@
+# Linker script for Alpha VMS systems.
+# Tristan Gingold <gingold@adacore.com>.
+
+PAGESIZE=0x10000
+
+cat <<EOF
+OUTPUT_FORMAT("${OUTPUT_FORMAT}")
+${LIB_SEARCH_DIRS}
+
+SECTIONS
+{
+ ${RELOCATING+. = ${PAGESIZE};}
+
+ \$DATA\$ ALIGN (${PAGESIZE}) : {
+ *(\$DATA\$)
+ *(\$LINK\$)
+ }
+ \$BSS\$ ALIGN (${PAGESIZE}) : {
+ *(\$BSS\$)
+ }
+ \$CODE\$ ALIGN (${PAGESIZE}) : {
+ *(\$CODE\$)
+ }
+ \$LITERAL\$ ALIGN (${PAGESIZE}) : {
+ *(\$LITERAL\$)
+ *(\$READONLY\$)
+ *(\$READONLY_ADDR\$)
+ }
+
+ \$DST\$ 0 : {
+ *(\$DST\$)
+ }
+}
+EOF