]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/scripttempl/pdp11.sc
Add libctf to update-copyright.py
[thirdparty/binutils-gdb.git] / ld / scripttempl / pdp11.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 #
7 test -z "${BIG_OUTPUT_FORMAT}" && BIG_OUTPUT_FORMAT=${OUTPUT_FORMAT}
8 test -z "${LITTLE_OUTPUT_FORMAT}" && LITTLE_OUTPUT_FORMAT=${OUTPUT_FORMAT}
9 test -z "${ALIGNMENT}" && ALIGNMENT="2"
10
11 cat <<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
18 OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG_OUTPUT_FORMAT}",
19 "${LITTLE_OUTPUT_FORMAT}")
20 OUTPUT_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);}
27 SECTIONS
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 }
56 EOF