Automatic date update in version.in
[deliverable/binutils-gdb.git] / ld / scripttempl / pdp11.sc
CommitLineData
fa1477dc
SC
1# Copyright (C) 2014-2020 Free Software Foundation, Inc.
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
12/* Copyright (C) 2014-2020 Free Software Foundation, Inc.
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 }
38 ${RELOCATING+. = ${DATA_ALIGNMENT};}
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
This page took 0.034517 seconds and 4 git commands to generate.