1 # Linker script for Alpha systems.
2 # Ian Lance Taylor <ian@cygnus.com>.
3 # These variables may be overridden by the emulation file. The
4 # defaults are appropriate for an Alpha running OSF/1.
6 # Copyright (C) 2014-2016 Free Software Foundation, Inc.
8 # Copying and distribution of this file, with or without modification,
9 # are permitted in any medium without royalty provided the copyright
10 # notice and this notice are preserved.
12 test -z "$ENTRY" && ENTRY=__start
13 test -z "$TEXT_START_ADDR" && TEXT_START_ADDR="0x120000000 + SIZEOF_HEADERS"
14 if test "x$LD_FLAG" = "xn" -o "x$LD_FLAG" = "xN"; then
17 test -z "$DATA_ADDR" && DATA_ADDR=0x140000000
20 /* Copyright (C) 2014-2016 Free Software Foundation, Inc.
22 Copying and distribution of this script, with or without modification,
23 are permitted in any medium without royalty provided the copyright
24 notice and this notice are preserved. */
26 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
29 ${RELOCATING+ENTRY (${ENTRY})}
33 ${RELOCATING+. = ${TEXT_START_ADDR};}
35 ${RELOCATING+ _ftext = . };
36 ${RELOCATING+ __istart = . };
37 ${RELOCATING+ *(.init) }
38 ${RELOCATING+ LONG (0x6bfa8001)}
39 ${RELOCATING+ eprol = .};
41 ${RELOCATING+ __fstart = . };
42 ${RELOCATING+ *(.fini)}
43 ${RELOCATING+ LONG (0x6bfa8001)}
44 ${RELOCATING+ _etext = .};
53 ${RELOCATING+ _fpdata = .;}
56 ${RELOCATING+. = ${DATA_ADDR};}
58 ${RELOCATING+ _fdata = .;}
60 ${CONSTRUCTING+CONSTRUCTORS}
65 ${RELOCATING+ _gp = ALIGN (16) + 0x8000;}
75 ${RELOCATING+ _EDATA = .;}
76 ${RELOCATING+ _FBSS = .;}
85 ${RELOCATING+ _end = .;}