]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/scripttempl/pj.sc
Update year range in copyright notice of all files.
[thirdparty/binutils-gdb.git] / ld / scripttempl / pj.sc
CommitLineData
2571583a 1# Copyright (C) 2014-2017 Free Software Foundation, Inc.
985743c7
NC
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
c6c8c6dc
ILT
7TORS=".tors :
8 {
9 ___ctors = . ;
10 *(.ctors)
11 ___ctors_end = . ;
12 ___dtors = . ;
13 *(.dtors)
14 ___dtors_end = . ;
15 } > ram"
16
17cat <<EOF
2571583a 18/* Copyright (C) 2014-2017 Free Software Foundation, Inc.
985743c7
NC
19
20 Copying and distribution of this script, with or without modification,
21 are permitted in any medium without royalty provided the copyright
22 notice and this notice are preserved. */
23
c6c8c6dc
ILT
24OUTPUT_FORMAT("${OUTPUT_FORMAT}")
25OUTPUT_ARCH(${ARCH})
26
27MEMORY
28{
29 ram : o = 0x1000, l = 512M
30}
31
32SECTIONS
33{
34 .text :
35 {
36 *(.text)
37 *(.strings)
38 ${RELOCATING+ _etext = . ; }
39 } ${RELOCATING+ > ram}
40 ${CONSTRUCTING+${TORS}}
41 .data :
42 {
43 *(.data)
44 ${RELOCATING+ _edata = . ; }
45 } ${RELOCATING+ > ram}
46 .bss :
47 {
48 ${RELOCATING+ _bss_start = . ; }
49 *(.bss)
50 *(COMMON)
51 ${RELOCATING+ _end = . ; }
52 } ${RELOCATING+ > ram}
53 .stack ${RELOCATING+ 0x30000 } :
54 {
55 ${RELOCATING+ _stack = . ; }
56 *(.stack)
57 } ${RELOCATING+ > ram}
58 .stab 0 ${RELOCATING+(NOLOAD)} :
59 {
60 *(.stab)
61 }
62 .stabstr 0 ${RELOCATING+(NOLOAD)} :
63 {
64 *(.stabstr)
65 }
66}
67EOF