]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/scripttempl/elf32xc16xs.sc
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.git] / ld / scripttempl / elf32xc16xs.sc
CommitLineData
250d07de 1# Copyright (C) 2014-2021 Free Software Foundation, Inc.
6c19b93b 2#
985743c7
NC
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
d70c5fc7 7cat <<EOF
250d07de 8/* Copyright (C) 2014-2021 Free Software Foundation, Inc.
985743c7
NC
9
10 Copying and distribution of this script, with or without modification,
11 are permitted in any medium without royalty provided the copyright
12 notice and this notice are preserved. */
13
d70c5fc7
NC
14OUTPUT_FORMAT("${OUTPUT_FORMAT}")
15OUTPUT_ARCH(${ARCH})
2bf2bf23
AM
16EOF
17
18test -n "${RELOCATING}" && cat <<EOF
19ENTRY ("_start")
d70c5fc7
NC
20MEMORY
21{
6c19b93b
AM
22 vectarea : o =0xc00000, l = 0x0300
23
d70c5fc7
NC
24 introm : o = 0xc00300, l = 0x16000
25 /* The stack starts at the top of main ram. */
6c19b93b 26
d70c5fc7
NC
27 dram : o = 0x8000 , l = 0xffff
28 /* At the very top of the address space is the 8-bit area. */
6c19b93b
AM
29
30 ldata : o =0x4000 ,l = 0x0200
d70c5fc7 31}
2bf2bf23
AM
32
33EOF
34
35cat <<EOF
d70c5fc7
NC
36SECTIONS
37{
38/*.vects :
6c19b93b
AM
39 {
40 *(.vects)
41 } ${RELOCATING+ > vectarea} */
d70c5fc7 42.init :
6c19b93b 43 {
2d3181c7
AM
44 KEEP (*(SORT_NONE(.init)))
45 ${RELOCATING+KEEP (*(SORT_NONE(.fini)))}
6c19b93b
AM
46 } ${RELOCATING+ >introm}
47
d70c5fc7
NC
48.text :
49 {
2bf2bf23
AM
50 ${RELOCATING+*(.rodata)}
51 ${RELOCATING+*(.text.*)}
d70c5fc7 52 *(.text)
6c19b93b 53 ${RELOCATING+ _etext = . ; }
d70c5fc7
NC
54 } ${RELOCATING+ > introm}
55.data :
56 {
57 *(.data)
2bf2bf23 58 ${RELOCATING+*(.data.*)}
6c19b93b 59
d70c5fc7
NC
60 ${RELOCATING+ _edata = . ; }
61 } ${RELOCATING+ > dram}
62
63.bss :
64 {
65 ${RELOCATING+ _bss_start = . ;}
66 *(.bss)
2bf2bf23 67 ${RELOCATING+*(COMMON)}
d70c5fc7
NC
68 ${RELOCATING+ _end = . ; }
69 } ${RELOCATING+ > dram}
70
6c19b93b
AM
71.ldata :
72 {
73 *(.ldata)
74 } ${RELOCATING+ > ldata}
d70c5fc7 75
6c19b93b
AM
76.vects :
77 {
78 *(.vects)
79 } ${RELOCATING+ > vectarea}
d70c5fc7
NC
80}
81EOF