]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/scripttempl/elf32xc16x.sc
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.git] / ld / scripttempl / elf32xc16x.sc
CommitLineData
219d1afa 1# Copyright (C) 2014-2018 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
219d1afa 8/* Copyright (C) 2014-2018 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})
596d6d91 16${RELOCATING+ENTRY ("_start")}
d70c5fc7
NC
17MEMORY
18{
6c19b93b
AM
19
20 vectarea : o =0x00000, l = 0x0300
21
d70c5fc7
NC
22 introm : o = 0x00400, l = 0x16000
23 /* The stack starts at the top of main ram. */
6c19b93b 24
d70c5fc7
NC
25 dram : o = 0x8000 , l = 0xffff
26 /* At the very top of the address space is the 8-bit area. */
6c19b93b
AM
27
28 ldata : o =0x4000 ,l = 0x0200
d70c5fc7
NC
29}
30
31SECTIONS
32{
33.init :
6c19b93b
AM
34 {
35 *(.init)
36 } ${RELOCATING+ >introm}
37
d70c5fc7
NC
38.text :
39 {
6c19b93b 40 *(.rodata)
d70c5fc7
NC
41 *(.text.*)
42 *(.text)
6c19b93b 43 ${RELOCATING+ _etext = . ; }
d70c5fc7
NC
44 } ${RELOCATING+ > introm}
45.data :
46 {
47 *(.data)
48 *(.data.*)
6c19b93b 49
d70c5fc7
NC
50 ${RELOCATING+ _edata = . ; }
51 } ${RELOCATING+ > dram}
52
53.bss :
54 {
55 ${RELOCATING+ _bss_start = . ;}
56 *(.bss)
57 *(COMMON)
58 ${RELOCATING+ _end = . ; }
59 } ${RELOCATING+ > dram}
60
6c19b93b
AM
61.ldata :
62 {
63 *(.ldata)
64 } ${RELOCATING+ > ldata}
d70c5fc7 65
6c19b93b
AM
66
67.vects :
68 {
69 *(.vects)
70 } ${RELOCATING+ > vectarea}
d70c5fc7
NC
71
72}
73EOF