Update year range in copyright notice of binutils files
[deliverable/binutils-gdb.git] / ld / scripttempl / elf32xc16x.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
23 vectarea : o =0x00000, l = 0x0300
24
d70c5fc7
NC
25 introm : o = 0x00400, l = 0x16000
26 /* The stack starts at the top of main ram. */
6c19b93b 27
d70c5fc7
NC
28 dram : o = 0x8000 , l = 0xffff
29 /* At the very top of the address space is the 8-bit area. */
6c19b93b
AM
30
31 ldata : o =0x4000 ,l = 0x0200
d70c5fc7
NC
32}
33
550892eb 34EOF
2bf2bf23
AM
35
36cat <<EOF
d70c5fc7
NC
37SECTIONS
38{
39.init :
6c19b93b
AM
40 {
41 *(.init)
42 } ${RELOCATING+ >introm}
43
d70c5fc7
NC
44.text :
45 {
2bf2bf23
AM
46 ${RELOCATING+*(.rodata)}
47 ${RELOCATING+*(.text.*)}
d70c5fc7 48 *(.text)
6c19b93b 49 ${RELOCATING+ _etext = . ; }
d70c5fc7
NC
50 } ${RELOCATING+ > introm}
51.data :
52 {
53 *(.data)
2bf2bf23 54 ${RELOCATING+*(.data.*)}
6c19b93b 55
d70c5fc7
NC
56 ${RELOCATING+ _edata = . ; }
57 } ${RELOCATING+ > dram}
58
59.bss :
60 {
61 ${RELOCATING+ _bss_start = . ;}
62 *(.bss)
2bf2bf23 63 ${RELOCATING+*(COMMON)}
d70c5fc7
NC
64 ${RELOCATING+ _end = . ; }
65 } ${RELOCATING+ > dram}
66
6c19b93b
AM
67.ldata :
68 {
69 *(.ldata)
70 } ${RELOCATING+ > ldata}
d70c5fc7 71
6c19b93b
AM
72
73.vects :
74 {
75 *(.vects)
76 } ${RELOCATING+ > vectarea}
d70c5fc7
NC
77
78}
79EOF
This page took 0.529818 seconds and 4 git commands to generate.