2010-04-14 09:27:27 +00:00
|
|
|
# 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};}
|
|
|
|
|
2010-06-01 09:52:28 +00:00
|
|
|
/* RW initialized data. */
|
2010-04-14 09:27:27 +00:00
|
|
|
\$DATA\$ ALIGN (${PAGESIZE}) : {
|
|
|
|
*(\$DATA\$)
|
|
|
|
}
|
2010-06-01 09:52:28 +00:00
|
|
|
/* RW data unmodified (zero-initialized). */
|
2010-04-14 09:27:27 +00:00
|
|
|
\$BSS\$ ALIGN (${PAGESIZE}) : {
|
|
|
|
*(\$BSS\$)
|
|
|
|
}
|
2010-06-01 09:52:28 +00:00
|
|
|
/* RO, executable code. */
|
2010-04-14 09:27:27 +00:00
|
|
|
\$CODE\$ ALIGN (${PAGESIZE}) : {
|
2011-05-06 10:44:31 +00:00
|
|
|
*(\$CODE\$ *\$CODE*)
|
2010-04-14 09:27:27 +00:00
|
|
|
}
|
2010-06-01 09:52:28 +00:00
|
|
|
/* RO initialized data. */
|
2010-04-14 09:27:27 +00:00
|
|
|
\$LITERAL\$ ALIGN (${PAGESIZE}) : {
|
2010-06-01 09:52:28 +00:00
|
|
|
*(\$LINK\$)
|
2010-04-14 09:27:27 +00:00
|
|
|
*(\$LITERAL\$)
|
|
|
|
*(\$READONLY\$)
|
|
|
|
*(\$READONLY_ADDR\$)
|
2010-06-01 09:52:28 +00:00
|
|
|
*(eh_frame)
|
|
|
|
*(jcr)
|
|
|
|
*(ctors)
|
|
|
|
*(dtors)
|
|
|
|
*(gcc_except_table)
|
|
|
|
|
|
|
|
/* LIB$INITIALIZE stuff. */
|
|
|
|
*(LIB\$INITIALIZDZ) /* Start marker. */
|
|
|
|
*(LIB\$INITIALIZD_) /* Hi priority. */
|
|
|
|
*(LIB\$INITIALIZE) /* User. */
|
|
|
|
*(LIB\$INITIALIZE$) /* End marker. */
|
2010-04-14 09:27:27 +00:00
|
|
|
}
|
|
|
|
|
2011-04-21 12:22:25 +00:00
|
|
|
\$DWARF\$ ALIGN (${PAGESIZE}) : {
|
|
|
|
\$dwarf2.debug_pubtypes = .;
|
|
|
|
*(debug_pubtypes)
|
|
|
|
\$dwarf2.debug_ranges = .;
|
|
|
|
*(debug_ranges)
|
|
|
|
|
|
|
|
\$dwarf2.debug_abbrev = .;
|
|
|
|
*(debug_abbrev)
|
|
|
|
\$dwarf2.debug_aranges = .;
|
|
|
|
*(debug_aranges)
|
|
|
|
\$dwarf2.debug_frame = .;
|
|
|
|
*(debug_frame)
|
|
|
|
\$dwarf2.debug_info = .;
|
|
|
|
*(debug_info)
|
|
|
|
\$dwarf2.debug_line = .;
|
|
|
|
*(debug_line)
|
|
|
|
\$dwarf2.debug_loc = .;
|
|
|
|
*(debug_loc)
|
|
|
|
\$dwarf2.debug_macinfo = .;
|
|
|
|
*(debug_macinfo)
|
2012-06-29 07:58:46 +00:00
|
|
|
\$dwarf2.debug_macro = .;
|
|
|
|
*(debug_macro)
|
2011-04-21 12:22:25 +00:00
|
|
|
\$dwarf2.debug_pubnames = .;
|
|
|
|
*(debug_pubnames)
|
|
|
|
\$dwarf2.debug_str = .;
|
|
|
|
*(debug_str)
|
|
|
|
\$dwarf2.debug_zzzzzz = .;
|
|
|
|
}
|
|
|
|
|
2010-04-14 09:27:27 +00:00
|
|
|
\$DST\$ 0 : {
|
|
|
|
*(\$DST\$)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
EOF
|