summaryrefslogtreecommitdiffstats
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2010-04-14 09:27:27 +0000
committerTristan Gingold <gingold@adacore.com>2010-04-14 09:27:27 +0000
commit8b351884bbc7ae74cad91991c60cbb1cd3f5e59f (patch)
tree6fea5cf936ec0a55a823ec20fc446f67b66018c2 /ld/scripttempl
parentd8703844ce007b20c4710c78747b6c0c5a7b494b (diff)
downloadppe42-binutils-8b351884bbc7ae74cad91991c60cbb1cd3f5e59f.tar.gz
ppe42-binutils-8b351884bbc7ae74cad91991c60cbb1cd3f5e59f.zip
2010-04-14 Tristan Gingold <gingold@adacore.com>
* emulparams/alphavms.sh: New file. * emultempl/vms.em: New file. * scripttempl/alphavms.sc: New file. * configure.tgt (alpha*-*-*vms*): Added. * Makefile.am (ALL_EMULATIONS): Add ealphavms.o (ealphavms.c): New target. * Makefile.in: Regenerate.
Diffstat (limited to 'ld/scripttempl')
-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 0000000000..ed4ec68d83
--- /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
OpenPOWER on IntegriCloud