]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/scripttempl/alpha.sc
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.git] / ld / scripttempl / alpha.sc
CommitLineData
252b5132
RH
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.
985743c7 5#
b3adc24a 6# Copyright (C) 2014-2020 Free Software Foundation, Inc.
6c19b93b 7#
985743c7
NC
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.
11
252b5132
RH
12test -z "$ENTRY" && ENTRY=__start
13test -z "$TEXT_START_ADDR" && TEXT_START_ADDR="0x120000000 + SIZEOF_HEADERS"
14if test "x$LD_FLAG" = "xn" -o "x$LD_FLAG" = "xN"; then
15 DATA_ADDR=.
16else
17 test -z "$DATA_ADDR" && DATA_ADDR=0x140000000
18fi
19cat <<EOF
b3adc24a 20/* Copyright (C) 2014-2020 Free Software Foundation, Inc.
985743c7
NC
21
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. */
25
252b5132
RH
26OUTPUT_FORMAT("${OUTPUT_FORMAT}")
27${LIB_SEARCH_DIRS}
28
596d6d91 29${RELOCATING+ENTRY (${ENTRY})}
252b5132
RH
30
31SECTIONS
32{
33 ${RELOCATING+. = ${TEXT_START_ADDR};}
34 .text : {
2bf2bf23
AM
35 ${RELOCATING+ _ftext = .;}
36 ${RELOCATING+ __istart = .;}
2d3181c7 37 ${RELOCATING+ KEEP (*(SORT_NONE(.init)))}
252b5132 38 ${RELOCATING+ LONG (0x6bfa8001)}
2bf2bf23 39 ${RELOCATING+ eprol = .;}
252b5132 40 *(.text)
2bf2bf23 41 ${RELOCATING+ __fstart = .;}
2d3181c7 42 ${RELOCATING+ KEEP (*(SORT_NONE(.fini)))}
252b5132 43 ${RELOCATING+ LONG (0x6bfa8001)}
2bf2bf23 44 ${RELOCATING+ _etext = .;}
252b5132
RH
45 }
46 .rdata : {
47 *(.rdata)
48 }
49 .rconst : {
50 *(.rconst)
51 }
52 .pdata : {
53 ${RELOCATING+ _fpdata = .;}
54 *(.pdata)
55 }
56 ${RELOCATING+. = ${DATA_ADDR};}
57 .data : {
58 ${RELOCATING+ _fdata = .;}
59 *(.data)
60 ${CONSTRUCTING+CONSTRUCTORS}
61 }
62 .xdata : {
63 *(.xdata)
64 }
65 ${RELOCATING+ _gp = ALIGN (16) + 0x8000;}
66 .lit8 : {
67 *(.lit8)
68 }
69 .lita : {
70 *(.lita)
71 }
72 .sdata : {
73 *(.sdata)
74 }
75 ${RELOCATING+ _EDATA = .;}
76 ${RELOCATING+ _FBSS = .;}
77 .sbss : {
78 *(.sbss)
2bf2bf23 79 ${RELOCATING+*(.scommon)}
252b5132
RH
80 }
81 .bss : {
82 *(.bss)
2bf2bf23 83 ${RELOCATING+*(COMMON)}
252b5132
RH
84 }
85 ${RELOCATING+ _end = .;}
86}
87EOF