aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl/alphavms.sc
blob: ed4ec68d834d4af1376b4f2c6483d4eee2ec0d08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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