Update year range in copyright notice of binutils files
[deliverable/binutils-gdb.git] / ld / scripttempl / elf32xc16xl.sc
CommitLineData
82704155 1# Copyright (C) 2014-2019 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
82704155 8/* Copyright (C) 2014-2019 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
32EOF
33
34cat <<EOF
d70c5fc7
NC
35SECTIONS
36{
37/*.vects :
6c19b93b
AM
38 {
39 *(.vects)
40 } ${RELOCATING+ > vectarea} */
d70c5fc7 41.init :
6c19b93b
AM
42 {
43 *(.init)
44 } ${RELOCATING+ >introm}
45
d70c5fc7
NC
46.text :
47 {
2bf2bf23
AM
48 ${RELOCATING+*(.rodata)}
49 ${RELOCATING+*(.text.*)}
d70c5fc7 50 *(.text)
6c19b93b 51 ${RELOCATING+ _etext = . ; }
d70c5fc7
NC
52 } ${RELOCATING+ > introm}
53.data :
54 {
55 *(.data)
2bf2bf23 56 ${RELOCATING+*(.data.*)}
6c19b93b 57
d70c5fc7
NC
58 ${RELOCATING+ _edata = . ; }
59 } ${RELOCATING+ > dram}
60
61.bss :
62 {
63 ${RELOCATING+ _bss_start = . ;}
64 *(.bss)
2bf2bf23 65 ${RELOCATING+*(COMMON)}
d70c5fc7
NC
66 ${RELOCATING+ _end = . ; }
67 } ${RELOCATING+ > dram}
68
6c19b93b
AM
69.ldata :
70 {
71 *(.ldata)
72 } ${RELOCATING+ > ldata}
d70c5fc7 73
6c19b93b
AM
74.vects :
75 {
76 *(.vects)
77 } ${RELOCATING+ > vectarea}
d70c5fc7
NC
78}
79EOF
This page took 0.511852 seconds and 4 git commands to generate.