File tree Expand file tree Collapse file tree 17 files changed +92
-80
lines changed
riscv-privileged/andes_v5/ae350 Expand file tree Collapse file tree 17 files changed +92
-80
lines changed Original file line number Diff line number Diff line change @@ -788,14 +788,9 @@ SECTIONS
788
788
__kernel_ram_end = KERNEL_BASE_ADDR + KERNEL_RAM_SIZE;
789
789
__kernel_ram_size = __kernel_ram_end - __kernel_ram_start;
790
790
791
- _image_ram_end = .;
792
791
_image_ram_all = (KERNEL_BASE_ADDR + KERNEL_RAM_SIZE) - _image_ram_start;
793
792
794
- z_mapped_end = .;
795
793
z_mapped_size = z_mapped_end - z_mapped_start;
796
- _end = .; /* end of image */
797
-
798
- GROUP_END(RAMABLE_REGION)
799
794
800
795
#ifndef LINKER_ZEPHYR_FINAL
801
796
/* static interrupts */
@@ -823,6 +818,12 @@ SECTIONS
823
818
*/
824
819
#include <snippets-sections.ld>
825
820
821
+ #define LAST_RAM_ALIGN MMU_PAGE_ALIGN
822
+
823
+ #include <zephyr/linker/ram-end.ld>
824
+
825
+ GROUP_END(RAMABLE_REGION)
826
+
826
827
#include <zephyr/linker/debug-sections.ld>
827
828
828
829
/DISCARD/ : { *(.note.GNU-stack) }
Original file line number Diff line number Diff line change @@ -246,8 +246,6 @@ SECTIONS {
246
246
247
247
MPU_MIN_SIZE_ALIGN
248
248
/* Define linker symbols */
249
- _image_ram_end = .;
250
- _end = .; /* end of image */
251
249
252
250
__kernel_ram_end = .;
253
251
__kernel_ram_size = __kernel_ram_end - __kernel_ram_start;
@@ -278,13 +276,15 @@ SECTIONS {
278
276
} GROUP_DATA_LINK_IN(YCCM, RAMABLE_REGION)
279
277
#endif
280
278
281
- GROUP_END(RAMABLE_REGION)
282
-
283
279
/* Located in generated directory. This file is populated by the
284
280
* zephyr_linker_sources() Cmake function.
285
281
*/
286
282
#include <snippets-sections.ld>
287
283
284
+ #include <zephyr/linker/ram-end.ld>
285
+
286
+ GROUP_END(RAMABLE_REGION)
287
+
288
288
#include <zephyr/linker/debug-sections.ld>
289
289
290
290
SECTION_PROLOGUE(.ARC.attributes, 0,) {
Original file line number Diff line number Diff line change @@ -332,16 +332,9 @@ SECTIONS
332
332
333
333
/* Define linker symbols */
334
334
335
- . = ALIGN (_region_min_align);
336
- _image_ram_end = .;
337
- _end = .; /* end of image */
338
- z_mapped_end = .;
339
-
340
335
__kernel_ram_end = RAM_ADDR + RAM_SIZE;
341
336
__kernel_ram_size = __kernel_ram_end - __kernel_ram_start;
342
337
343
- GROUP_END(RAMABLE_REGION)
344
-
345
338
#if DT_NODE_HAS_STATUS(DT_CHOSEN(zephyr_ocm), okay)
346
339
GROUP_START (OCM )
347
340
@@ -373,6 +366,12 @@ GROUP_END(OCM)
373
366
*/
374
367
#include <snippets-sections.ld>
375
368
369
+ #define LAST_RAM_ALIGN . = ALIGN (_region_min_align);
370
+
371
+ #include <zephyr/linker/ram-end.ld>
372
+
373
+ GROUP_END(RAMABLE_REGION)
374
+
376
375
#include <zephyr/linker/debug-sections.ld>
377
376
378
377
SECTION_PROLOGUE(.ARM.attributes, 0,)
Original file line number Diff line number Diff line change @@ -361,14 +361,9 @@ SECTIONS
361
361
362
362
/* Define linker symbols */
363
363
364
- _image_ram_end = .;
365
- _end = .; /* end of image */
366
-
367
364
__kernel_ram_end = RAM_ADDR + RAM_SIZE;
368
365
__kernel_ram_size = __kernel_ram_end - __kernel_ram_start;
369
366
370
- GROUP_END(RAMABLE_REGION)
371
-
372
367
#if DT_NODE_HAS_STATUS(DT_CHOSEN(zephyr_itcm), okay)
373
368
GROUP_START (ITCM )
374
369
@@ -426,6 +421,10 @@ GROUP_END(DTCM)
426
421
*/
427
422
#include <snippets-sections.ld>
428
423
424
+ #include <zephyr/linker/ram-end.ld>
425
+
426
+ GROUP_END(RAMABLE_REGION)
427
+
429
428
#include <zephyr/linker/debug-sections.ld>
430
429
431
430
/DISCARD/ : { *(.note.GNU-stack) }
Original file line number Diff line number Diff line change @@ -295,21 +295,21 @@ SECTIONS
295
295
296
296
/* Define linker symbols */
297
297
298
- MMU_ALIGN;
299
- _image_ram_end = .;
300
- _end = .; /* end of image */
301
- z_mapped_end = .;
302
-
303
298
__kernel_ram_end = RAM_ADDR + RAM_SIZE;
304
299
__kernel_ram_size = __kernel_ram_end - __kernel_ram_start;
305
300
306
- GROUP_END(RAMABLE_REGION)
307
301
308
302
/* Located in generated directory. This file is populated by the
309
303
* zephyr_linker_sources() Cmake function.
310
304
*/
311
305
#include <snippets-sections.ld>
312
306
307
+ #define LAST_RAM_ALIGN MMU_ALIGN;
308
+
309
+ #include <zephyr/linker/ram-end.ld>
310
+
311
+ GROUP_END(RAMABLE_REGION)
312
+
313
313
#include <zephyr/linker/debug-sections.ld>
314
314
315
315
SECTION_PROLOGUE(.ARM.attributes, 0,)
Original file line number Diff line number Diff line change @@ -181,14 +181,15 @@ SECTIONS
181
181
182
182
#include <zephyr/linker/cplusplus-ram.ld>
183
183
184
- _image_ram_end = .;
185
- _end = .; /* end of image */
186
-
187
184
/* Located in generated directory. This file is populated by the
188
185
* zephyr_linker_sources() Cmake function.
189
186
*/
190
187
#include <snippets-sections.ld>
191
188
189
+ #include <zephyr/linker/ram-end.ld>
190
+
191
+ GROUP_END(RAMABLE_REGION)
192
+
192
193
#include <zephyr/linker/debug-sections.ld>
193
194
194
195
.mdebug.abi32 : {
Original file line number Diff line number Diff line change @@ -259,17 +259,15 @@ SECTIONS
259
259
260
260
#include <zephyr/linker/common-noinit.ld>
261
261
262
- /* Define linker symbols */
263
- _image_ram_end = .;
264
- _end = .; /* end of image */
265
-
266
- GROUP_END(RAMABLE_REGION)
267
-
268
262
/* Located in generated directory. This file is populated by the
269
263
* zephyr_linker_sources() Cmake function.
270
264
*/
271
265
#include <snippets-sections.ld>
272
266
267
+ #include <zephyr/linker/ram-end.ld>
268
+
269
+ GROUP_END(RAMABLE_REGION)
270
+
273
271
#include <zephyr/linker/debug-sections.ld>
274
272
275
273
}
Original file line number Diff line number Diff line change @@ -305,11 +305,6 @@ SECTIONS
305
305
306
306
__data_region_end = .;
307
307
308
- MPU_MIN_SIZE_ALIGN
309
-
310
- _image_ram_end = .;
311
- _end = .; /* end of image */
312
-
313
308
__kernel_ram_end = .;
314
309
__kernel_ram_size = __kernel_ram_end - __kernel_ram_start;
315
310
@@ -370,7 +365,11 @@ GROUP_END(DTCM)
370
365
*/
371
366
#include <snippets-sections.ld>
372
367
373
- GROUP_END(RAMABLE_REGION)
368
+ #define LAST_RAM_ALIGN MPU_MIN_SIZE_ALIGN
369
+
370
+ #include <zephyr/linker/ram-end.ld>
371
+
372
+ GROUP_END(RAMABLE_REGION)
374
373
375
374
#include <zephyr/linker/debug-sections.ld>
376
375
Original file line number Diff line number Diff line change @@ -154,14 +154,15 @@ SECTIONS
154
154
155
155
#include <zephyr/linker/cplusplus-ram.ld>
156
156
157
- _image_ram_end = .;
158
- _end = .; /* end of image */
159
-
160
157
/* Located in generated directory. This file is populated by the
161
158
* zephyr_linker_sources() Cmake function.
162
159
*/
163
160
#include <snippets-sections.ld>
164
161
162
+ #include <zephyr/linker/ram-end.ld>
163
+
164
+ GROUP_END(RAMABLE_REGION)
165
+
165
166
#include <zephyr/linker/debug-sections.ld>
166
167
167
168
/DISCARD/ : { *(.note.GNU-stack) }
Original file line number Diff line number Diff line change @@ -503,14 +503,10 @@ SECTIONS
503
503
__kernel_ram_end = KERNEL_BASE_ADDR + KERNEL_RAM_SIZE;
504
504
__kernel_ram_size = __kernel_ram_end - __kernel_ram_start;
505
505
506
- _image_ram_end = .;
507
506
_image_ram_all = (KERNEL_BASE_ADDR + KERNEL_RAM_SIZE) - _image_ram_start;
508
507
509
508
z_mapped_end = .;
510
509
z_mapped_size = z_mapped_end - z_mapped_start;
511
- _end = .; /* end of image */
512
-
513
- GROUP_END(RAMABLE_REGION)
514
510
515
511
#ifndef LINKER_ZEPHYR_FINAL
516
512
/* static interrupts */
@@ -538,6 +534,10 @@ SECTIONS
538
534
*/
539
535
#include <snippets-sections.ld>
540
536
537
+ #include <zephyr/linker/ram-end.ld>
538
+
539
+ GROUP_END(RAMABLE_REGION)
540
+
541
541
#include <zephyr/linker/debug-sections.ld>
542
542
543
543
/DISCARD/ : { *(.note.GNU-stack) }
You can’t perform that action at this time.
0 commit comments