]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/scripttempl/pdp11.sc
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.git] / ld / scripttempl / pdp11.sc
CommitLineData
a2c58332 1# Copyright (C) 2014-2022 Free Software Foundation, Inc.
fa1477dc
SC
2#
3# Copying and distribution of this file, with or without modification,
4# are permitted in any medium without royalty provided the copyright
5# notice and this notice are preserved.
6#
7test -z "${BIG_OUTPUT_FORMAT}" && BIG_OUTPUT_FORMAT=${OUTPUT_FORMAT}
8test -z "${LITTLE_OUTPUT_FORMAT}" && LITTLE_OUTPUT_FORMAT=${OUTPUT_FORMAT}
9test -z "${ALIGNMENT}" && ALIGNMENT="2"
10
11cat <<EOF
a2c58332 12/* Copyright (C) 2014-2022 Free Software Foundation, Inc.
fa1477dc
SC
13
14 Copying and distribution of this script, with or without modification,
15 are permitted in any medium without royalty provided the copyright
16 notice and this notice are preserved. */
17
18OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG_OUTPUT_FORMAT}",
19 "${LITTLE_OUTPUT_FORMAT}")
20OUTPUT_ARCH(${ARCH})
21
22${RELOCATING+${LIB_SEARCH_DIRS}}
23${STACKZERO+${RELOCATING+${STACKZERO}}}
24${SHLIB_PATH+${RELOCATING+${SHLIB_PATH}}}
25${RELOCATING+${EXECUTABLE_SYMBOLS}}
26${RELOCATING+PROVIDE (__stack = 0);}
27SECTIONS
28{
29 ${RELOCATING+. = ${TEXT_START_ADDR};}
30 .text :
31 {
32 CREATE_OBJECT_SYMBOLS
33 *(.text)
34 ${RELOCATING+_etext = .;}
35 ${RELOCATING+__etext = .;}
36 ${PAD_TEXT+${RELOCATING+. = ${DATA_ALIGNMENT};}}
37 }
1c9c9b9b 38 ${RELOCATING+. = ${DATA_SEG_ADDR};}
fa1477dc
SC
39 .data :
40 {
41 *(.data)
42 ${CONSTRUCTING+CONSTRUCTORS}
43 ${RELOCATING+_edata = .;}
44 ${RELOCATING+__edata = .;}
45 }
46 .bss :
47 {
48 ${RELOCATING+ __bss_start = .};
49 *(.bss)
50 *(COMMON)
51 ${RELOCATING+. = ALIGN(${ALIGNMENT});}
52 ${RELOCATING+_end = . };
53 ${RELOCATING+__end = . };
54 }
55}
56EOF