OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [hal/] [sparclite/] [arch/] [current/] [src/] [sparclite.ld] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
//===========================================================================
2
//
3
// MLT linker script for SPARClite
4
//
5
//===========================================================================
6
// ####ECOSGPLCOPYRIGHTBEGIN####
7
// -------------------------------------------
8
// This file is part of eCos, the Embedded Configurable Operating System.
9
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
10
//
11
// eCos is free software; you can redistribute it and/or modify it under
12
// the terms of the GNU General Public License as published by the Free
13
// Software Foundation; either version 2 or (at your option) any later
14
// version.
15
//
16
// eCos is distributed in the hope that it will be useful, but WITHOUT
17
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
19
// for more details.
20
//
21
// You should have received a copy of the GNU General Public License
22
// along with eCos; if not, write to the Free Software Foundation, Inc.,
23
// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
24
//
25
// As a special exception, if other files instantiate templates or use
26
// macros or inline functions from this file, or you compile this file
27
// and link it with other works to produce a work based on this file,
28
// this file does not by itself cause the resulting work to be covered by
29
// the GNU General Public License. However the source code for this file
30
// must still be made available in accordance with section (3) of the GNU
31
// General Public License v2.
32
//
33
// This exception does not invalidate any other reasons why a work based
34
// on this file might be covered by the GNU General Public License.
35
// -------------------------------------------
36
// ####ECOSGPLCOPYRIGHTEND####
37
//===========================================================================
38
 
39
STARTUP(vectors.o)
40
ENTRY(reset_vector)
41
#ifdef EXTRAS
42
INPUT(extras.o)
43
#endif
44
#if (__GNUC__ >= 3)
45
GROUP(libtarget.a libgcc.a libsupc++.a)
46
#else
47
GROUP(libtarget.a libgcc.a)
48
#endif
49
 
50
#define ALIGN_LMA 8
51
#define FOLLOWING(_section_) AT ((LOADADDR (_section_) + SIZEOF (_section_) + ALIGN_LMA - 1) & ~ (ALIGN_LMA - 1))
52
#define LMA_EQ_VMA
53
#define FORCE_OUTPUT . = .
54
 
55
#define SECTIONS_BEGIN
56
 
57
#define SECTION_rom_vectors(_region_, _vma_, _lma_) \
58
    .rom_vectors _vma_ : _lma_ \
59
    { FORCE_OUTPUT; KEEP (*(.vectors)) } \
60
    > _region_
61
 
62
#define SECTION_text(_region_, _vma_, _lma_) \
63
    .text _vma_ : _lma_ \
64
    { _stext = ABSOLUTE(.); \
65
    *(.text*) *(.gnu.warning) *(.gnu.linkonce*) *(.init) } \
66
    > _region_ \
67
    _etext = .; PROVIDE (etext = .);
68
 
69
#define SECTION_fini(_region_, _vma_, _lma_) \
70
    .fini _vma_ : _lma_ \
71
    { FORCE_OUTPUT; *(.fini) } \
72
    > _region_
73
 
74
#define SECTION_rodata(_region_, _vma_, _lma_) \
75
    .rodata _vma_ : _lma_ \
76
    { FORCE_OUTPUT; *(.rodata*) } \
77
    > _region_
78
 
79
#define SECTION_rodata1(_region_, _vma_, _lma_) \
80
    .rodata1 _vma_ : _lma_ \
81
    { FORCE_OUTPUT; *(.rodata1) } \
82
    > _region_
83
 
84
#define SECTION_fixup(_region_, _vma_, _lma_) \
85
    .fixup _vma_ : _lma_ \
86
    { FORCE_OUTPUT; *(.fixup) } \
87
    > _region_
88
 
89
#define SECTION_gcc_except_table(_region_, _vma_, _lma_) \
90
    .gcc_except_table _vma_ : _lma_ \
91
    { FORCE_OUTPUT; *(.gcc_except_table) } \
92
    > _region_
93
 
94
#define SECTION_ram_vectors(_region_, _vma_, _lma_) \
95
    .ram_vectors _vma_ : _lma_ \
96
    { __ram_vectors_start = ABSOLUTE(.); \
97
    KEEP (*(.ram_vectors)) \
98
    __ram_vectors_end = ABSOLUTE(.); } \
99
    > _region_
100
 
101
#define SECTION_data(_region_, _vma_, _lma_) \
102
    .data _vma_ : _lma_ \
103
    { __ram_data_start = ABSOLUTE (.); \
104
    *(.data*) *(.data1) \
105
    _GOT1_START_ = ABSOLUTE (.); *(.got1) _GOT1_END_ = ABSOLUTE (.); \
106
    _GOT2_START_ = ABSOLUTE (.); *(.got2) _GOT2_END_ = ABSOLUTE (.); \
107
    . = ALIGN (4); \
108
    KEEP(*( SORT (.ecos.table.*))) ;            \
109
    __CTOR_LIST__ = ABSOLUTE (.); \
110
    KEEP(*(SORT(.ctors*))) \
111
    __CTOR_END__ = ABSOLUTE (.); \
112
    __DTOR_LIST__ = ABSOLUTE (.); \
113
    KEEP(*(SORT(.dtors*))) \
114
    __DTOR_END__ = ABSOLUTE (.); \
115
    _GOT_START = ABSOLUTE (.); _GLOBAL_OFFSET_TABLE_ = ABSOLUTE (.) + 32768; \
116
    _SDA_BASE_ = ABSOLUTE (.); \
117
    *(.got.plt) *(.got) _GOT_END_ = ABSOLUTE (.); \
118
    *(.dynamic) *(.sdata*) *(.sbss*) *(.eh_frame) } \
119
    > _region_ \
120
    __rom_data_start = LOADADDR (.data); \
121
    . = ALIGN (8); \
122
    __ram_data_end = .; PROVIDE (__ram_data_end = .); _edata = .; PROVIDE (edata = .);
123
 
124
#define SECTION_bss(_region_, _vma_, _lma_) \
125
    .bss _vma_ : _lma_ \
126
    { __bss_start = ABSOLUTE (.); \
127
    *(.scommon) *(.dynbss) *(.bss) *(COMMON) \
128
    __bss_end = ABSOLUTE (.); } \
129
    > _region_
130
 
131
#define SECTIONS_END . = ALIGN(8); _end = .; PROVIDE (end = .); \
132
    .debug          0 : { *(.debug) } \
133
    .line           0 : { *(.line) } \
134
    .debug_srcinfo  0 : { *(.debug_srcinfo) } \
135
    .debug_sfnames  0 : { *(.debug_sfnames) } \
136
    .debug_aranges  0 : { *(.debug_aranges) } \
137
    .debug_pubnames 0 : { *(.debug_pubnames) } \
138
    .debug_info     0 : { *(.debug_info) } \
139
    .debug_abbrev   0 : { *(.debug_abbrev) } \
140
    .debug_line     0 : { *(.debug_line) } \
141
    .debug_frame    0 : { *(.debug_frame) } \
142
    .debug_str      0 : { *(.debug_str) } \
143
    .debug_loc      0 : { *(.debug_loc) } \
144
    .debug_macinfo  0 : { *(.debug_macinfo) } \
145
    .debug_weaknames 0 : { *(.debug_weaknames) } \
146
    .debug_funcnames 0 : { *(.debug_funcnames) } \
147
    .debug_typenames 0 : { *(.debug_typenames) } \
148
    .debug_varnames  0 : { *(.debug_varnames) }
149
 
150
#include 
151
#include CYGHWR_MEMORY_LAYOUT_LDI

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.