New 2016 binutils ChangeLog files
[deliverable/binutils-gdb.git] / ld / scripttempl / sh.sc
CommitLineData
b90efa5b 1# Copyright (C) 2014-2015 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
252b5132
RH
7TORS=".tors :
8 {
9 ___ctors = . ;
10 *(.ctors)
11 ___ctors_end = . ;
12 ___dtors = . ;
13 *(.dtors)
14 ___dtors_end = . ;
15 } > ram"
16
17cat <<EOF
b90efa5b 18/* Copyright (C) 2014-2015 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
252b5132
RH
24OUTPUT_FORMAT("${OUTPUT_FORMAT}")
25OUTPUT_ARCH(${ARCH})
26
27MEMORY
28{
29 ram : o = 0x1000, l = 512k
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)
ff326826
DJ
44 ${RELOCATING+*(.gcc_exc*)}
45 ${RELOCATING+___EH_FRAME_BEGIN__ = . ;}
46 ${RELOCATING+*(.eh_fram*)}
47 ${RELOCATING+___EH_FRAME_END__ = . ;}
48 ${RELOCATING+LONG(0);}
252b5132
RH
49 ${RELOCATING+ _edata = . ; }
50 } ${RELOCATING+ > ram}
51 .bss :
52 {
53 ${RELOCATING+ _bss_start = . ; }
54 *(.bss)
55 *(COMMON)
56 ${RELOCATING+ _end = . ; }
57 } ${RELOCATING+ > ram}
58 .stack ${RELOCATING+ 0x30000 } :
59 {
60 ${RELOCATING+ _stack = . ; }
61 *(.stack)
62 } ${RELOCATING+ > ram}
63 .stab 0 ${RELOCATING+(NOLOAD)} :
64 {
65 *(.stab)
66 }
67 .stabstr 0 ${RELOCATING+(NOLOAD)} :
68 {
69 *(.stabstr)
70 }
71}
72EOF
73
74
75
76
This page took 0.66654 seconds and 4 git commands to generate.