Mercurial > ecos
annotate packages/hal/powerpc/arch/current/src/powerpc.ld @ 3292:7f8e529b4d82 default tip
Fix FREESCALE_EDMA_NBYTES_MLOFFYES_MLOFF() so it works with negative offsets.
| author | vae |
|---|---|
| date | Wed, 29 Apr 2015 23:31:48 +0000 |
| parents | 74dbf4c3f2e1 |
| children |
| rev | line source |
|---|---|
|
150
f0e3fb000de8
Merge from eCos master repository on 2001-01-26-06:43:02-GMT
jlarmour
parents:
136
diff
changeset
|
1 //========================================================================== |
| 2 | 2 // |
| 3 // powerpc.ld | |
| 4 // | |
| 5 // Linker script for PowerPC | |
| 6 // | |
| 7 //========================================================================== | |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2597
diff
changeset
|
8 // ####ECOSGPLCOPYRIGHTBEGIN#### |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2597
diff
changeset
|
9 // ------------------------------------------- |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2597
diff
changeset
|
10 // This file is part of eCos, the Embedded Configurable Operating System. |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2597
diff
changeset
|
11 // Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004, 2005, 2008 Free Software Foundation, Inc. |
|
208
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
154
diff
changeset
|
12 // |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2597
diff
changeset
|
13 // eCos is free software; you can redistribute it and/or modify it under |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2597
diff
changeset
|
14 // the terms of the GNU General Public License as published by the Free |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2597
diff
changeset
|
15 // Software Foundation; either version 2 or (at your option) any later |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2597
diff
changeset
|
16 // version. |
|
208
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
154
diff
changeset
|
17 // |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2597
diff
changeset
|
18 // eCos is distributed in the hope that it will be useful, but WITHOUT |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2597
diff
changeset
|
19 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2597
diff
changeset
|
20 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2597
diff
changeset
|
21 // for more details. |
|
208
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
154
diff
changeset
|
22 // |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2597
diff
changeset
|
23 // You should have received a copy of the GNU General Public License |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2597
diff
changeset
|
24 // along with eCos; if not, write to the Free Software Foundation, Inc., |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2597
diff
changeset
|
25 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
208
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
154
diff
changeset
|
26 // |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2597
diff
changeset
|
27 // As a special exception, if other files instantiate templates or use |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2597
diff
changeset
|
28 // macros or inline functions from this file, or you compile this file |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2597
diff
changeset
|
29 // and link it with other works to produce a work based on this file, |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2597
diff
changeset
|
30 // this file does not by itself cause the resulting work to be covered by |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2597
diff
changeset
|
31 // the GNU General Public License. However the source code for this file |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2597
diff
changeset
|
32 // must still be made available in accordance with section (3) of the GNU |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2597
diff
changeset
|
33 // General Public License v2. |
|
208
e0c0827131d1
Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
154
diff
changeset
|
34 // |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2597
diff
changeset
|
35 // This exception does not invalidate any other reasons why a work based |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2597
diff
changeset
|
36 // on this file might be covered by the GNU General Public License. |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2597
diff
changeset
|
37 // ------------------------------------------- |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2597
diff
changeset
|
38 // ####ECOSGPLCOPYRIGHTEND#### |
| 2 | 39 //========================================================================== |
| 40 //#####DESCRIPTIONBEGIN#### | |
| 41 // | |
| 42 // Author(s): jskov | |
| 43 // Contributors:jskov | |
| 44 // Date: 1999-01-18 | |
| 45 // Purpose: PowerPC Linker script | |
| 46 // | |
| 47 //####DESCRIPTIONEND#### | |
| 48 // | |
|
150
f0e3fb000de8
Merge from eCos master repository on 2001-01-26-06:43:02-GMT
jlarmour
parents:
136
diff
changeset
|
49 //========================================================================== |
|
2597
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
50 |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
51 #include <pkgconf/hal.h> |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
52 |
| 2 | 53 STARTUP(vectors.o) |
|
70
c5536bad4c24
Merge from eCos master repository on 2000-02-11-15:46:40-GMT
jlarmour
parents:
66
diff
changeset
|
54 ENTRY(__exception_reset) |
| 2 | 55 #ifdef EXTRAS |
| 56 INPUT(extras.o) | |
| 57 #endif | |
|
2597
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
58 GROUP( CYGBLD_HAL_LINKER_GROUPED_LIBS ) |
| 2 | 59 |
| 60 #define ALIGN_LMA 8 | |
| 61 #define FOLLOWING(_section_) AT ((LOADADDR (_section_) + SIZEOF (_section_) + ALIGN_LMA - 1) & ~ (ALIGN_LMA - 1)) | |
| 62 #define LMA_EQ_VMA | |
| 63 #define FORCE_OUTPUT . = . | |
| 64 | |
| 65 | |
| 66 #define SECTIONS_BEGIN | |
| 67 | |
|
2597
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
68 #define SECTION_RELOCS(_region_, _vma_, _lma_) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
69 .rel.dyn : \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
70 { \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
71 *(.rel.init) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
72 *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
73 *(.rel.fini) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
74 *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
75 *(.rel.data.rel.ro*) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
76 *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
77 *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
78 *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
79 *(.rel.ctors) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
80 *(.rel.dtors) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
81 *(.rel.got) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
82 *(.rel.sdata .rel.sdata.* .rel.gnu.linkonce.s.*) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
83 *(.rel.sbss .rel.sbss.* .rel.gnu.linkonce.sb.*) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
84 *(.rel.sdata2 .rel.sdata2.* .rel.gnu.linkonce.s2.*) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
85 *(.rel.sbss2 .rel.sbss2.* .rel.gnu.linkonce.sb2.*) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
86 *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
87 } > _region_ \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
88 .rela.dyn : \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
89 { \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
90 *(.rela.init) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
91 *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
92 *(.rela.fini) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
93 *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
94 *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
95 *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
96 *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
97 *(.rela.ctors) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
98 *(.rela.dtors) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
99 *(.rela.got) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
100 *(.rela.got1) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
101 *(.rela.got2) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
102 *(.rela.sdata .rela.sdata.* .rela.gnu.linkonce.s.*) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
103 *(.rela.sbss .rela.sbss.* .rela.gnu.linkonce.sb.*) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
104 *(.rela.sdata2 .rela.sdata2.* .rela.gnu.linkonce.s2.*) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
105 *(.rela.sbss2 .rela.sbss2.* .rela.gnu.linkonce.sb2.*) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
106 *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
107 } > _region_ \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
108 .rel.plt : { *(.rel.plt) } > _region_ \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
109 .rela.plt : { *(.rela.plt) } > _region_ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
110 |
| 2 | 111 #define SECTION_vectors(_region_, _vma_, _lma_) \ |
| 112 .vectors _vma_ : _lma_ \ | |
| 113 { FORCE_OUTPUT; KEEP(*(.vectors)) } \ | |
| 114 > _region_ | |
| 115 | |
| 116 #define SECTION_text(_region_, _vma_, _lma_) \ | |
| 117 .text _vma_ : _lma_ \ | |
| 118 { _stext = .; \ | |
|
2597
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
119 *(.text*) *(.gnu.warning) *(.gnu.linkonce.t.*) *(.init) } \ |
| 2 | 120 > _region_ \ |
| 121 _etext = .; PROVIDE (etext = .); | |
| 122 | |
| 123 #define SECTION_fini(_region_, _vma_, _lma_) \ | |
| 124 .fini _vma_ : _lma_ \ | |
| 125 { FORCE_OUTPUT; *(.fini) } \ | |
| 126 > _region_ | |
| 127 | |
| 128 #define SECTION_rodata1(_region_, _vma_, _lma_) \ | |
| 129 .rodata1 _vma_ : _lma_ \ | |
|
132
0ae0bc38e387
Merge from eCos master repository on 2000-10-31-00:30:36-GMT
jlarmour
parents:
115
diff
changeset
|
130 { FORCE_OUTPUT; *(.rodata1*) } \ |
| 2 | 131 > _region_ |
| 132 | |
|
2597
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
133 #define SECTION_rodata(_region_, _vma_, _lma_) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
134 .rodata _vma_ : _lma_ \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
135 { FORCE_OUTPUT; *(.rodata*) *(.gnu.linkonce.r.*) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
136 } > _region_ |
| 2 | 137 |
| 138 #define SECTION_fixup(_region_, _vma_, _lma_) \ | |
| 139 .fixup _vma_ : _lma_ \ | |
| 140 { __FIXUP_START__ = ABSOLUTE(.); *(.fixup) __FIXUP_END__ = ABSOLUTE(.);}\ | |
| 141 > _region_ | |
| 142 | |
|
2597
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
143 /* We want to discard C++ exception frame data if we don't have the |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
144 * C++ support to use it. But we can't. With current binutils (2008-05-13) |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
145 * the linker goes very wrong if either of the contents of |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
146 * .gcc_except_table or .eh_frame are discarded. Yes I tried. |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
147 */ |
| 2 | 148 #define SECTION_gcc_except_table(_region_, _vma_, _lma_) \ |
|
2597
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
149 .gcc_except_table _vma_ : _lma_ \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
150 { __EXCEPT_START__ = ABSOLUTE(.); \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
151 *(.gcc_except_table) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
152 *(.gcc_except_table.*) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
153 __EXCEPT_END__ = ABSOLUTE(.); \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
154 } > _region_ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
155 |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
156 #define SECTION_eh_frame(_region_, _vma_, _lma_) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
157 .eh_frame _vma_ : _lma_ \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
158 { \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
159 *(.eh_frame_hdr) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
160 FORCE_OUTPUT; __EH_FRAME_BEGIN__ = .; \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
161 KEEP(*(.eh_frame)) \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
162 __FRAME_END__ = .; \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
163 . = . + 8; \ |
|
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
164 } > _region_ = 0 |
| 2 | 165 |
| 166 #define SECTION_data(_region_, _vma_, _lma_) \ | |
| 167 .data _vma_ : _lma_ \ | |
| 168 { __ram_data_start = ABSOLUTE(.); *(.data*) \ | |
|
2597
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
169 *(.gnu.linkonce.d.*) \ |
| 2 | 170 __GOT1_START__ = ABSOLUTE(.); *(.got1) __GOT1_END__ = ABSOLUTE(.); \ |
| 171 /* Put .ctors and .dtors next to the .got2 section, so that */ \ | |
| 172 /* the pointers get relocated with -mrelocatable. */ \ | |
| 173 . = ALIGN(8); __CTOR_LIST__ = ABSOLUTE(.); \ | |
| 174 KEEP(*(SORT(.ctors*))) __CTOR_END__ = ABSOLUTE(.); \ | |
| 175 __DTOR_LIST__ = ABSOLUTE(.); \ | |
| 176 KEEP(*(SORT(.dtors*))) __DTOR_END__ = ABSOLUTE(.); \ | |
|
115
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
101
diff
changeset
|
177 . = ALIGN(8); \ |
|
6ed91473a1cd
Merge from eCos master repository on 2000-08-21-22:40:54-BST
jlarmour
parents:
101
diff
changeset
|
178 KEEP(*( SORT (.ecos.table.*))) ; \ |
|
154
e2d866e32dac
Merge from eCos master repository on 2001-02-26-23:18:05-GMT
jlarmour
parents:
150
diff
changeset
|
179 . = ALIGN(4); \ |
|
e2d866e32dac
Merge from eCos master repository on 2001-02-26-23:18:05-GMT
jlarmour
parents:
150
diff
changeset
|
180 *( .2ram.*) ; \ |
| 2 | 181 __GOT2_START__ = ABSOLUTE(.); *(.got2) __GOT2_END__ = ABSOLUTE(.); \ |
|
2597
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
182 __GOT_START = ABSOLUTE(.); \ |
| 2 | 183 _SDA_BASE_ = ABSOLUTE(.); *(.got.plt) *(.got) \ |
| 184 __GOT_END__ = ABSOLUTE(.); *(.dynamic) \ | |
| 185 /* We want the small data sections together, so single-instruction */ \ | |
| 186 /* offsets can access them all, and initialized data all before */ \ | |
| 187 /* uninitialized, so we can shorten the on-disk segment size. */ \ | |
|
2597
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
188 __SDATA_START__ = ABSOLUTE(.); *(.sdata) *(.sdata.*) *(.gnu.linkonce.s.*) \ |
|
132
0ae0bc38e387
Merge from eCos master repository on 2000-10-31-00:30:36-GMT
jlarmour
parents:
115
diff
changeset
|
189 __SDATA2_START__ = ABSOLUTE(.); *(.sdata2*) } \ |
| 2 | 190 > _region_ \ |
| 191 __rom_data_start = LOADADDR(.data); \ | |
| 192 __ram_data_end = .; PROVIDE(__ram_data_end = .); \ | |
| 193 _edata = .; PROVIDE (edata = .); | |
| 194 | |
| 195 #define SECTION_sbss(_region_, _vma_, _lma_) \ | |
| 196 .sbss _vma_ : _lma_ \ | |
| 197 { __sbss_start = ABSOLUTE (.); \ | |
|
134
d2f49caf9e38
Merge from eCos master repository on 2000-11-03-09:00:49-GMT
jlarmour
parents:
132
diff
changeset
|
198 __SBSS_START__ = ABSOLUTE(.); *(.sbss.*) __SBSS_END__ = ABSOLUTE(.); \ |
|
136
a9ac27ec7abc
Merge from eCos master repository on 2000-11-17-18:24:25-GMT
jlarmour
parents:
134
diff
changeset
|
199 __SBSSx_START__ = ABSOLUTE(.); *(.sbss*) __SBSSx_END__ = ABSOLUTE(.);\ |
|
2597
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
200 *(.gnu.linkonce.sb.*) *(.scommon*) \ |
| 2 | 201 __sbss_end = ABSOLUTE (.); } \ |
| 202 > _region_ | |
| 203 | |
| 204 #define SECTION_bss(_region_, _vma_, _lma_) \ | |
| 205 .bss _vma_ : _lma_ \ | |
| 206 { __bss_start = ABSOLUTE (.); \ | |
|
2597
f04f94b690fa
* src/powerpc.ld (SECTION_data): Do not define _GLOBAL_OFFSET_TABLE_
jlarmour
parents:
928
diff
changeset
|
207 FORCE_OUTPUT; *(.dynbss*) *(.bss*) *(.gnu.linkonce.b.*) *(COMMON) \ |
| 2 | 208 __bss_end = ABSOLUTE (.); } \ |
| 209 > _region_ | |
| 210 | |
| 211 #define SECTIONS_END . = ALIGN(4); _end = .; PROVIDE (end = .); | |
| 212 | |
| 213 #include <pkgconf/system.h> | |
| 214 #include CYGHWR_MEMORY_LAYOUT_LDI | |
|
70
c5536bad4c24
Merge from eCos master repository on 2000-02-11-15:46:40-GMT
jlarmour
parents:
66
diff
changeset
|
215 |
|
101
c37d3a9e1b28
Merge from eCos master repository on 2000-06-16-07:47:03-BST
jlarmour
parents:
82
diff
changeset
|
216 // Define VSR and virtual tables to reside at fixed addresses. |
|
82
6736c52df507
Merge from eCos master repository on 2000-04-14-13:35:46-BST
jlarmour
parents:
76
diff
changeset
|
217 #include CYGBLD_HAL_TARGET_H |
|
6736c52df507
Merge from eCos master repository on 2000-04-14-13:35:46-BST
jlarmour
parents:
76
diff
changeset
|
218 hal_vsr_table = CYGHWR_HAL_VSR_TABLE; |
|
101
c37d3a9e1b28
Merge from eCos master repository on 2000-06-16-07:47:03-BST
jlarmour
parents:
82
diff
changeset
|
219 hal_virtual_vector_table = CYGHWR_HAL_VIRTUAL_VECTOR_TABLE; |
