Changeset cab410f in rtems
- Timestamp:
- May 21, 2013, 12:19:24 PM (8 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 0d671d70
- Parents:
- d9bd5cd6
- git-author:
- Sebastian Huber <sebastian.huber@…> (05/21/13 12:19:24)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (05/27/13 10:49:13)
- Location:
- c/src/lib/libbsp
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/arm/shared/include/linker-symbols.h
rd9bd5cd6 rcab410f 84 84 LINKER_SYMBOL(bsp_section_rodata_load_end) 85 85 86 LINKER_SYMBOL(bsp_section_armexidx_begin) 87 LINKER_SYMBOL(bsp_section_armexidx_end) 88 LINKER_SYMBOL(bsp_section_armexidx_size) 89 LINKER_SYMBOL(bsp_section_armexidx_load_begin) 90 LINKER_SYMBOL(bsp_section_armexidx_load_end) 91 86 92 LINKER_SYMBOL(bsp_section_data_begin) 87 93 LINKER_SYMBOL(bsp_section_data_end) -
c/src/lib/libbsp/arm/shared/include/start.h
rd9bd5cd6 rcab410f 100 100 ); 101 101 102 /* Copy .ARM.exidx section */ 103 bsp_start_memcpy( 104 (int *) bsp_section_armexidx_begin, 105 (const int *) bsp_section_armexidx_load_begin, 106 (size_t) bsp_section_armexidx_size 107 ); 108 102 109 /* Copy .data section */ 103 110 bsp_start_memcpy( -
c/src/lib/libbsp/arm/shared/startup/linkcmds.base
rd9bd5cd6 rcab410f 83 83 bsp_section_fast_text_load_end = bsp_section_fast_text_load_begin + bsp_section_fast_text_size; 84 84 85 .text : {85 .text : ALIGN(32) { 86 86 bsp_section_text_begin = .; 87 88 /* .text */ 87 89 *(.text.unlikely .text.*_unlikely) 88 90 *(.text .stub .text.* .gnu.linkonce.t.*) … … 90 92 *(.gnu.warning) 91 93 *(.glue_7t) *(.glue_7) *(.vfp11_veneer) *(.v4_bx) 92 } > REGION_TEXT AT > REGION_TEXT_LOAD 93 .init : {94 95 /* .init */ 94 96 KEEP (*(.init)) 95 } > REGION_TEXT AT > REGION_TEXT_LOAD 96 .fini : {97 98 /* .fini */ 97 99 KEEP (*(.fini)) 100 98 101 bsp_section_text_end = .; 99 102 } > REGION_TEXT AT > REGION_TEXT_LOAD … … 106 109 } > REGION_RODATA 107 110 108 .rodata : {111 .rodata : ALIGN(32) { 109 112 bsp_section_rodata_begin = .; 113 114 /* .rodata */ 110 115 *(.rodata .rodata.* .gnu.linkonce.r.*) 111 } > REGION_RODATA AT > REGION_RODATA_LOAD 112 .rodata1 : {116 117 /* .rodata1 */ 113 118 *(.rodata1) 114 } > REGION_RODATA AT > REGION_RODATA_LOAD 115 .ARM.extab : {119 120 /* .ARM.extab */ 116 121 *(.ARM.extab* .gnu.linkonce.armextab.*) 117 } > REGION_RODATA AT > REGION_RODATA_LOAD 118 .ARM.exidx : { 119 __exidx_start = .; 120 *(.ARM.exidx* .gnu.linkonce.armexidx.*) 121 __exidx_end = .; 122 } > REGION_RODATA AT > REGION_RODATA_LOAD 123 .eh_frame : { 122 123 /* .eh_frame */ 124 124 KEEP (*(.eh_frame)) 125 } > REGION_RODATA AT > REGION_RODATA_LOAD 126 .gcc_except_table : {125 126 /* .gcc_except_table */ 127 127 *(.gcc_except_table .gcc_except_table.*) 128 } > REGION_RODATA AT > REGION_RODATA_LOAD 129 .preinit_array : { 128 129 /* .tdata */ 130 *(.tdata .tdata.* .gnu.linkonce.td.*) 131 132 /* .tbss */ 133 *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) 134 135 /* .preinit_array */ 130 136 PROVIDE_HIDDEN (__preinit_array_start = .); 131 137 KEEP (*(.preinit_array)) 132 138 PROVIDE_HIDDEN (__preinit_array_end = .); 133 } > REGION_RODATA AT > REGION_RODATA_LOAD 134 .init_array : {139 140 /* .init_array */ 135 141 PROVIDE_HIDDEN (__init_array_start = .); 136 142 KEEP (*(SORT(.init_array.*))) 137 143 KEEP (*(.init_array)) 138 144 PROVIDE_HIDDEN (__init_array_end = .); 139 } > REGION_RODATA AT > REGION_RODATA_LOAD 140 .fini_array : {145 146 /* .fini_array */ 141 147 PROVIDE_HIDDEN (__fini_array_start = .); 142 148 KEEP (*(.fini_array)) 143 149 KEEP (*(SORT(.fini_array.*))) 144 150 PROVIDE_HIDDEN (__fini_array_end = .); 145 } > REGION_RODATA AT > REGION_RODATA_LOAD 146 .ctors : {151 152 /* .ctors */ 147 153 /* gcc uses crtbegin.o to find the start of 148 154 the constructors, so we make sure it is … … 163 169 KEEP (*(SORT(.ctors.*))) 164 170 KEEP (*(.ctors)) 165 } > REGION_RODATA AT > REGION_RODATA_LOAD 166 .dtors : {171 172 /* .dtors */ 167 173 KEEP (*crtbegin.o(.dtors)) 168 174 KEEP (*crtbegin?.o(.dtors)) … … 170 176 KEEP (*(SORT(.dtors.*))) 171 177 KEEP (*(.dtors)) 172 } > REGION_RODATA AT > REGION_RODATA_LOAD 173 .data.rel.ro : {178 179 /* .data.rel.ro */ 174 180 *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*) 175 181 *(.data.rel.ro* .gnu.linkonce.d.rel.ro.*) 176 } > REGION_RODATA AT > REGION_RODATA_LOAD 177 .jcr : {182 183 /* .jcr */ 178 184 KEEP (*(.jcr)) 179 } > REGION_RODATA AT > REGION_RODATA_LOAD 180 .dynamic : {185 186 /* .dynamic */ 181 187 *(.dynamic) 182 } > REGION_RODATA AT > REGION_RODATA_LOAD 183 .got : {188 189 /* .got */ 184 190 *(.got.plt) *(.igot.plt) *(.got) *(.igot) 185 } > REGION_RODATA AT > REGION_RODATA_LOAD 186 .interp : {191 192 /* .interp */ 187 193 *(.interp) 188 } > REGION_RODATA AT > REGION_RODATA_LOAD 189 .note.gnu.build-id : {194 195 /* .note.gnu.build-id */ 190 196 *(.note.gnu.build-id) 191 } > REGION_RODATA AT > REGION_RODATA_LOAD 192 .hash : {197 198 /* .hash */ 193 199 *(.hash) 194 } > REGION_RODATA AT > REGION_RODATA_LOAD 195 .gnu.hash : {200 201 /* .gnu.hash */ 196 202 *(.gnu.hash) 197 } > REGION_RODATA AT > REGION_RODATA_LOAD 198 .dynsym : {203 204 /* .dynsym */ 199 205 *(.dynsym) 200 } > REGION_RODATA AT > REGION_RODATA_LOAD 201 .dynstr : {206 207 /* .dynstr */ 202 208 *(.dynstr) 203 } > REGION_RODATA AT > REGION_RODATA_LOAD 204 .gnu.version : {209 210 /* .gnu.version */ 205 211 *(.gnu.version) 206 } > REGION_RODATA AT > REGION_RODATA_LOAD 207 .gnu.version_d : {212 213 /* .gnu.version_d */ 208 214 *(.gnu.version_d) 209 } > REGION_RODATA AT > REGION_RODATA_LOAD 210 .gnu.version_r : {215 216 /* .gnu.version_r */ 211 217 *(.gnu.version_r) 212 } > REGION_RODATA AT > REGION_RODATA_LOAD 213 .rel.dyn : {218 219 /* .rel.dyn */ 214 220 *(.rel.init) 215 221 *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*) … … 229 235 PROVIDE_HIDDEN (__rela_iplt_start = .); 230 236 PROVIDE_HIDDEN (__rela_iplt_end = .); 231 } > REGION_RODATA AT > REGION_RODATA_LOAD 232 .rela.dyn : {237 238 /* .rela.dyn */ 233 239 *(.rela.init) 234 240 *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) … … 247 253 *(.rela.iplt) 248 254 PROVIDE_HIDDEN (__rela_iplt_end = .); 249 } > REGION_RODATA AT > REGION_RODATA_LOAD 250 .rel.plt : {255 256 /* .rel.plt */ 251 257 *(.rel.plt) 252 } > REGION_RODATA AT > REGION_RODATA_LOAD 253 .rela.plt : {258 259 /* .rela.plt */ 254 260 *(.rela.plt) 255 } > REGION_RODATA AT > REGION_RODATA_LOAD 256 .plt : {261 262 /* .plt */ 257 263 *(.plt) 258 } > REGION_RODATA AT > REGION_RODATA_LOAD 259 .iplt : {264 265 /* .iplt */ 260 266 *(.iplt) 261 } > REGION_RODATA AT > REGION_RODATA_LOAD 262 .robsdsets : { 267 263 268 /* Special FreeBSD linker set sections */ 264 269 __start_set_sysctl_set = .; … … 280 285 bsp_section_rodata_load_end = bsp_section_rodata_load_begin + bsp_section_rodata_size; 281 286 287 .ARM.exidx : ALIGN(32) { 288 bsp_section_armexidx_begin = .; 289 290 /* .ARM.exidx */ 291 __exidx_start = .; 292 *(.ARM.exidx* .gnu.linkonce.armexidx.*) 293 __exidx_end = .; 294 295 bsp_section_armexidx_end = .; 296 } > REGION_RODATA AT > REGION_RODATA_LOAD 297 bsp_section_armexidx_size = bsp_section_armexidx_end - bsp_section_armexidx_begin; 298 bsp_section_armexidx_load_begin = LOADADDR (.ARM.exidx); 299 bsp_section_armexidx_load_end = bsp_section_armexidx_load_begin + bsp_section_armexidx_size; 300 282 301 .rwbarrier : { 283 302 . = ALIGN (bsp_section_rwbarrier_align); … … 316 335 317 336 *(.bsp_vector) 337 318 338 bsp_section_vector_end = .; 319 339 } > REGION_VECTOR AT > REGION_VECTOR … … 322 342 bsp_vector_table_end = bsp_vector_table_begin + bsp_vector_table_size; 323 343 324 .fast_data : {344 .fast_data : ALIGN(32) { 325 345 bsp_section_fast_data_begin = .; 326 346 *(.bsp_fast_data) … … 331 351 bsp_section_fast_data_load_end = bsp_section_fast_data_load_begin + bsp_section_fast_data_size; 332 352 333 .data : {353 .data : ALIGN(32) { 334 354 bsp_section_data_begin = .; 355 356 /* .data */ 335 357 *(.data .data.* .gnu.linkonce.d.*) 336 358 SORT(CONSTRUCTORS) 337 } > REGION_DATA AT > REGION_DATA_LOAD 338 .data1 : {359 360 /* .data1 */ 339 361 *(.data1) 340 } > REGION_DATA AT > REGION_DATA_LOAD 341 .rwbsdsets : { 362 342 363 /* Special FreeBSD linker set sections */ 343 364 _bsd__start_set_sysinit_set = .; … … 347 368 bsp_section_data_end = .; 348 369 } > REGION_DATA AT > REGION_DATA_LOAD 349 .tdata : {350 *(.tdata .tdata.* .gnu.linkonce.td.*)351 } > REGION_DATA AT > REGION_DATA_LOAD352 370 bsp_section_data_size = bsp_section_data_end - bsp_section_data_begin; 353 371 bsp_section_data_load_begin = LOADADDR (.data); 354 372 bsp_section_data_load_end = bsp_section_data_load_begin + bsp_section_data_size; 355 373 356 .tbss : {357 *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon)358 } > REGION_BSS AT > REGION_BSS359 374 .bss : { 360 375 bsp_section_bss_begin = .; 376 377 /* .bss */ 361 378 *(.dynbss) 362 379 *(.bss .bss.* .gnu.linkonce.b.*) 363 380 *(COMMON) 381 364 382 bsp_section_bss_end = .; 365 383 } > REGION_BSS AT > REGION_BSS -
c/src/lib/libbsp/powerpc/qoriq/start/start.S
rd9bd5cd6 rcab410f 84 84 bl copy 85 85 86 /* Copy small read-only data */ 87 LWI r3, bsp_section_sdata2_begin 88 LWI r4, bsp_section_sdata2_load_begin 89 LWI r5, bsp_section_sdata2_size 90 bl copy 91 86 92 /* Copy fast data */ 87 93 LWI r3, bsp_section_fast_data_begin … … 94 100 LWI r4, bsp_section_data_load_begin 95 101 LWI r5, bsp_section_data_size 102 bl copy 103 104 /* Copy small data */ 105 LWI r3, bsp_section_sdata_begin 106 LWI r4, bsp_section_sdata_load_begin 107 LWI r5, bsp_section_sdata_size 96 108 bl copy 97 109 -
c/src/lib/libbsp/powerpc/qoriq/startup/mmu-config.c
rd9bd5cd6 rcab410f 79 79 ENTRY_R(bsp_section_rodata_load_begin, bsp_section_rodata_size), 80 80 ENTRY_R(bsp_section_rodata_begin, bsp_section_rodata_size), 81 ENTRY_R(bsp_section_sdata2_load_begin, bsp_section_sdata2_size), 82 ENTRY_R(bsp_section_sdata2_begin, bsp_section_sdata2_size), 81 83 ENTRY_R(bsp_section_fast_data_load_begin, bsp_section_fast_data_size), 82 84 ENTRY_RW(bsp_section_fast_data_begin, bsp_section_fast_data_size), 83 85 ENTRY_R(bsp_section_data_load_begin, bsp_section_data_size), 84 86 ENTRY_RW(bsp_section_data_begin, bsp_section_data_size), 87 ENTRY_R(bsp_section_sdata_load_begin, bsp_section_sdata_size), 88 ENTRY_RW(bsp_section_sdata_begin, bsp_section_sdata_size), 85 89 ENTRY_RW(bsp_section_sbss_begin, bsp_section_sbss_size), 86 90 ENTRY_RW(bsp_section_bss_begin, bsp_section_bss_size), -
c/src/lib/libbsp/powerpc/shared/include/linker-symbols.h
rd9bd5cd6 rcab410f 62 62 LINKER_SYMBOL(bsp_section_rodata_load_end) 63 63 64 LINKER_SYMBOL(bsp_section_sdata2_begin) 65 LINKER_SYMBOL(bsp_section_sdata2_end) 66 LINKER_SYMBOL(bsp_section_sdata2_size) 67 LINKER_SYMBOL(bsp_section_sdata2_load_begin) 68 LINKER_SYMBOL(bsp_section_sdata2_load_end) 69 64 70 LINKER_SYMBOL(bsp_section_fast_data_begin) 65 71 LINKER_SYMBOL(bsp_section_fast_data_end) … … 73 79 LINKER_SYMBOL(bsp_section_data_load_begin) 74 80 LINKER_SYMBOL(bsp_section_data_load_end) 81 82 LINKER_SYMBOL(bsp_section_sdata_begin) 83 LINKER_SYMBOL(bsp_section_sdata_end) 84 LINKER_SYMBOL(bsp_section_sdata_size) 85 LINKER_SYMBOL(bsp_section_sdata_load_begin) 86 LINKER_SYMBOL(bsp_section_sdata_load_end) 75 87 76 88 LINKER_SYMBOL(bsp_section_bss_begin) -
c/src/lib/libbsp/powerpc/shared/startup/linkcmds.base
rd9bd5cd6 rcab410f 8 8 9 9 /* 10 * Copyright (c) 2011-201 2embedded brains GmbH. All rights reserved.10 * Copyright (c) 2011-2013 embedded brains GmbH. All rights reserved. 11 11 * 12 12 * embedded brains GmbH … … 52 52 } > REGION_TEXT 53 53 54 .text : {54 .text : ALIGN(32) { 55 55 bsp_section_text_begin = .; 56 56 57 *(SORT(.bsp_text*)) 58 59 /* .text */ 57 60 *(.text.unlikely .text.*_unlikely) 58 61 *(.text .stub .text.* .gnu.linkonce.t.*) 59 62 *(.gnu.warning) 60 63 *(.glink) 61 } > REGION_TEXT AT > REGION_TEXT_LOAD 62 .init : {64 65 /* .init */ 63 66 KEEP (*(.init)) 64 } > REGION_TEXT AT > REGION_TEXT_LOAD 65 .fini : {67 68 /* .fini */ 66 69 PROVIDE (_fini = .); 67 70 KEEP (*(.fini)) 71 68 72 bsp_section_text_end = .; 69 73 } > REGION_TEXT AT > REGION_TEXT_LOAD … … 72 76 bsp_section_text_load_end = bsp_section_text_load_begin + bsp_section_text_size; 73 77 74 .fast_text : {78 .fast_text : ALIGN(32) { 75 79 bsp_section_fast_text_begin = .; 76 80 *(.bsp_fast_text) … … 85 89 } > REGION_RODATA 86 90 87 .rodata : {91 .rodata : ALIGN(32) { 88 92 bsp_section_rodata_begin = .; 93 89 94 *(SORT(.bsp_rodata*)) 95 96 /* .rodata */ 90 97 *(.rodata .rodata.* .gnu.linkonce.r.*) 91 } > REGION_RODATA AT > REGION_RODATA_LOAD 92 .rodata1 : {98 99 /* .rodata1 */ 93 100 *(.rodata1) 94 } > REGION_RODATA AT > REGION_RODATA_LOAD 95 .sdata2 : { 96 PROVIDE (_SDA2_BASE_ = 32768); 97 *(.sdata2 .sdata2.* .gnu.linkonce.s2.*) 98 } > REGION_RODATA AT > REGION_RODATA_LOAD 99 .sbss2 : { 100 *(.sbss2 .sbss2.* .gnu.linkonce.sb2.*) 101 } > REGION_RODATA AT > REGION_RODATA_LOAD 102 .eh_frame_hdr : { 101 102 /* .eh_frame_hdr */ 103 103 *(.eh_frame_hdr) 104 } > REGION_RODATA AT > REGION_RODATA_LOAD 105 .eh_frame : {104 105 /* .eh_frame */ 106 106 KEEP (*(.eh_frame)) 107 } > REGION_RODATA AT > REGION_RODATA_LOAD 108 .gcc_except_table : {107 108 /* .gcc_except_table */ 109 109 *(.gcc_except_table .gcc_except_table.*) 110 } > REGION_RODATA AT > REGION_RODATA_LOAD 111 .tdata : {110 111 /* .tdata */ 112 112 *(.tdata .tdata.* .gnu.linkonce.td.*) 113 } > REGION_RODATA AT > REGION_RODATA_LOAD 114 .tbss : {113 114 /* .tbss */ 115 115 *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) 116 } > REGION_RODATA AT > REGION_RODATA_LOAD 117 .preinit_array : {116 117 /* .preinit_array */ 118 118 PROVIDE_HIDDEN (__preinit_array_start = .); 119 119 KEEP (*(.preinit_array)) 120 120 PROVIDE_HIDDEN (__preinit_array_end = .); 121 } > REGION_RODATA AT > REGION_RODATA_LOAD 122 .init_array : {121 122 /* .init_array */ 123 123 PROVIDE_HIDDEN (__init_array_start = .); 124 124 KEEP (*(SORT(.init_array.*))) 125 125 KEEP (*(.init_array)) 126 126 PROVIDE_HIDDEN (__init_array_end = .); 127 } > REGION_RODATA AT > REGION_RODATA_LOAD 128 .fini_array : {127 128 /* .fini_array */ 129 129 PROVIDE_HIDDEN (__fini_array_start = .); 130 130 KEEP (*(SORT(.fini_array.*))) 131 131 KEEP (*(.fini_array)) 132 132 PROVIDE_HIDDEN (__fini_array_end = .); 133 } > REGION_RODATA AT > REGION_RODATA_LOAD 134 .ctors : {133 134 /* .ctors */ 135 135 KEEP (*crtbegin.o(.ctors)) 136 136 KEEP (*crtbegin?.o(.ctors)) … … 138 138 KEEP (*(SORT(.ctors.*))) 139 139 KEEP (*(.ctors)) 140 } > REGION_RODATA AT > REGION_RODATA_LOAD 141 .dtors : {140 141 /* .dtors */ 142 142 KEEP (*crtbegin.o(.dtors)) 143 143 KEEP (*crtbegin?.o(.dtors)) … … 145 145 KEEP (*(SORT(.dtors.*))) 146 146 KEEP (*(.dtors)) 147 } > REGION_RODATA AT > REGION_RODATA_LOAD 148 .jcr : {147 148 /* .jcr */ 149 149 KEEP (*(.jcr)) 150 } > REGION_RODATA AT > REGION_RODATA_LOAD 151 .data.rel.ro : {150 151 /* .data.rel.ro */ 152 152 *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*) *(.data.rel.ro* .gnu.linkonce.d.rel.ro.*) 153 } > REGION_RODATA AT > REGION_RODATA_LOAD 154 .fixup : {153 154 /* .fixpup */ 155 155 *(.fixup) 156 } > REGION_RODATA AT > REGION_RODATA_LOAD 157 .dynamic : {156 157 /* .dynamic */ 158 158 *(.dynamic) 159 } > REGION_RODATA AT > REGION_RODATA_LOAD 160 .got1 : {159 160 /* .got1 */ 161 161 *(.got1) 162 } > REGION_RODATA AT > REGION_RODATA_LOAD 163 .got2 : {162 163 /* .got2 */ 164 164 *(.got2) 165 } > REGION_RODATA AT > REGION_RODATA_LOAD 166 .got : {165 166 /* .got */ 167 167 *(.got) 168 } > REGION_RODATA AT > REGION_RODATA_LOAD 169 .plt : {168 169 /* .plt */ 170 170 *(.plt) 171 } > REGION_RODATA AT > REGION_RODATA_LOAD 172 .iplt : {171 172 /* .iptl */ 173 173 *(.iplt) 174 } > REGION_RODATA AT > REGION_RODATA_LOAD 175 .interp : {174 175 /* .interp */ 176 176 *(.interp) 177 } > REGION_RODATA AT > REGION_RODATA_LOAD 178 .note.gnu.build-id : {177 178 /* .note.gnu.build-id */ 179 179 *(.note.gnu.build-id) 180 } > REGION_RODATA AT > REGION_RODATA_LOAD 181 .hash : {180 181 /* .hash */ 182 182 *(.hash) 183 } > REGION_RODATA AT > REGION_RODATA_LOAD 184 .gnu.hash : {183 184 /* .gnu.hash */ 185 185 *(.gnu.hash) 186 } > REGION_RODATA AT > REGION_RODATA_LOAD 187 .dynsym : {186 187 /* .dynsym */ 188 188 *(.dynsym) 189 } > REGION_RODATA AT > REGION_RODATA_LOAD 190 .dynstr : {189 190 /* .dynstr */ 191 191 *(.dynstr) 192 } > REGION_RODATA AT > REGION_RODATA_LOAD 193 .gnu.version : {192 193 /* .gnu.version */ 194 194 *(.gnu.version) 195 } > REGION_RODATA AT > REGION_RODATA_LOAD 196 .gnu.version_d : {195 196 /* .gnu.version_d */ 197 197 *(.gnu.version_d) 198 } > REGION_RODATA AT > REGION_RODATA_LOAD 199 .gnu.version_r : {198 199 /* .gnu.version_r */ 200 200 *(.gnu.version_r) 201 } > REGION_RODATA AT > REGION_RODATA_LOAD 202 .rela.dyn : {201 202 /* .rela.dyn */ 203 203 *(.rela.init) 204 204 *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) … … 223 223 *(.rela.iplt) 224 224 PROVIDE_HIDDEN (__rela_iplt_end = .); 225 } > REGION_RODATA AT > REGION_RODATA_LOAD 226 .rela.plt : {225 226 /* .rela.plt */ 227 227 *(.rela.plt) 228 } > REGION_RODATA AT > REGION_RODATA_LOAD 229 .robsdsets : { 228 230 229 /* Special FreeBSD linker set sections */ 231 230 __start_set_sysctl_set = .; … … 247 246 bsp_section_rodata_load_end = bsp_section_rodata_load_begin + bsp_section_rodata_size; 248 247 248 .sdata2 : ALIGN(32) { 249 bsp_section_sdata2_begin = .; 250 251 /* .sdata2 */ 252 PROVIDE (_SDA2_BASE_ = 32768); 253 *(.sdata2 .sdata2.* .gnu.linkonce.s2.*) 254 255 /* .sbss2 */ 256 *(.sbss2 .sbss2.* .gnu.linkonce.sb2.*) 257 258 bsp_section_sdata2_end = .; 259 } > REGION_RODATA AT > REGION_RODATA_LOAD 260 bsp_section_sdata2_size = bsp_section_sdata2_end - bsp_section_sdata2_begin; 261 bsp_section_sdata2_load_begin = LOADADDR (.sdata2); 262 bsp_section_sdata2_load_end = bsp_section_sdata2_load_begin + bsp_section_sdata2_size; 263 249 264 .rwbarrier : { 250 265 . = ALIGN (bsp_section_rwbarrier_align); 251 266 } > REGION_DATA 252 267 253 .fast_data : {268 .fast_data : ALIGN(32) { 254 269 bsp_section_fast_data_begin = .; 255 270 *(SORT(.bsp_fast_data*)) … … 260 275 bsp_section_fast_data_load_end = bsp_section_fast_data_load_begin + bsp_section_fast_data_size; 261 276 262 .data : {277 .data : ALIGN(32) { 263 278 bsp_section_data_begin = .; 279 264 280 *(SORT(.bsp_data*)) 281 282 /* .data */ 265 283 *(.data .data.* .gnu.linkonce.d.*) 266 284 SORT(CONSTRUCTORS) 267 } > REGION_DATA AT > REGION_DATA_LOAD 268 .data1 : {285 286 /* .data1 */ 269 287 *(.data1) 270 } > REGION_DATA AT > REGION_DATA_LOAD 271 .rwbsdsets : { 288 272 289 /* Special FreeBSD linker set sections */ 273 290 _bsd__start_set_sysinit_set = .; 274 291 *(_bsd_set_sysinit_set); 275 292 _bsd__stop_set_sysinit_set = .; 276 } > REGION_DATA AT > REGION_DATA_LOAD 277 .sdata : { 278 PROVIDE (_SDA_BASE_ = 32768); 279 *(.sdata .sdata.* .gnu.linkonce.s.*) 293 280 294 bsp_section_data_end = .; 281 295 } > REGION_DATA AT > REGION_DATA_LOAD … … 283 297 bsp_section_data_load_begin = LOADADDR (.data); 284 298 bsp_section_data_load_end = bsp_section_data_load_begin + bsp_section_data_size; 299 300 .sdata : ALIGN(32) { 301 bsp_section_sdata_begin = .; 302 303 /* .sdata */ 304 PROVIDE (_SDA_BASE_ = 32768); 305 *(.sdata .sdata.* .gnu.linkonce.s.*) 306 307 bsp_section_sdata_end = .; 308 } > REGION_DATA AT > REGION_DATA_LOAD 309 bsp_section_sdata_size = bsp_section_sdata_end - bsp_section_sdata_begin; 310 bsp_section_sdata_load_begin = LOADADDR (.sdata); 311 bsp_section_sdata_load_end = bsp_section_sdata_load_begin + bsp_section_sdata_size; 285 312 286 313 .sbss : { -
c/src/lib/libbsp/powerpc/t32mppc/start/start.S
rd9bd5cd6 rcab410f 47 47 bl copy 48 48 49 /* Copy small read-only data */ 50 LWI r3, bsp_section_sdata2_begin 51 LWI r4, bsp_section_sdata2_load_begin 52 LWI r5, bsp_section_sdata2_size 53 bl copy 54 49 55 /* Copy fast data */ 50 56 LWI r3, bsp_section_fast_data_begin … … 57 63 LWI r4, bsp_section_data_load_begin 58 64 LWI r5, bsp_section_data_size 65 bl copy 66 67 /* Copy small data */ 68 LWI r3, bsp_section_sdata_begin 69 LWI r4, bsp_section_sdata_load_begin 70 LWI r5, bsp_section_sdata_size 59 71 bl copy 60 72
Note: See TracChangeset
for help on using the changeset viewer.