forked from wolfSSL/wolfBoot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaurix_tc3xx.ld
More file actions
86 lines (65 loc) · 2.53 KB
/
aurix_tc3xx.ld
File metadata and controls
86 lines (65 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/* tc3tc_bootloader.ld */
OUTPUT_FORMAT("elf32-tricore")
OUTPUT_ARCH(tricore)
/* This is defined global in tc3tc_crt.S */
ENTRY(tc3tc_crt_entry)
/* Include TC3mem linker script */
INCLUDE tc3_mem.ld
/* Reallocate regions */
INCLUDE tc3_layout.ld
/* BMHD sections */
REGION_ALIAS("BMHD_ORIG", ucb_bmhd_orig)
REGION_ALIAS("BMHD_COPY", ucb_bmhd_copy)
/* CRT0 Boot Code Start */
REGION_ALIAS("BOOT", bl_flash)
/* Shared code and data */
REGION_ALIAS("CODE", bl_flash)
REGION_ALIAS("RODATA", bl_flash)
REGION_ALIAS("DATA", dlmu_cpu0)
REGION_ALIAS("RAM_CODE", pspr_cpu0)
/* CPU0: Output sections to memory region mapping */
REGION_ALIAS("CODE_CPU0_", bl_flash)
REGION_ALIAS("RODATA_CPU0_", bl_flash)
REGION_ALIAS("RAMCODE_CPU0_", pspr_cpu0)
REGION_ALIAS("DATA_DSPR_CPU0_", dspr_cpu0)
REGION_ALIAS("DATA_DLMU_CPU0_", dlmu_cpu0)
/* CPU1: Output sections to memory region mapping */
REGION_ALIAS("CODE_CPU1_", bl_flash)
REGION_ALIAS("RODATA_CPU1_", bl_flash)
REGION_ALIAS("RAMCODE_CPU1_", pspr_cpu1)
REGION_ALIAS("DATA_DSPR_CPU1_", dspr_cpu1)
REGION_ALIAS("DATA_DLMU_CPU1_", dlmu_cpu1)
/* CPU2: Output sections to memory region mapping */
REGION_ALIAS("CODE_CPU2_", bl_flash)
REGION_ALIAS("RODATA_CPU2_", bl_flash)
REGION_ALIAS("RAMCODE_CPU2_", pspr_cpu2)
REGION_ALIAS("DATA_DSPR_CPU2_", dspr_cpu2)
REGION_ALIAS("DATA_DLMU_CPU2_", dlmu_cpu2)
/* CPU3: Output sections to memory region mapping */
REGION_ALIAS("CODE_CPU3_", bl_flash)
REGION_ALIAS("RODATA_CPU3_", bl_flash)
REGION_ALIAS("RAMCODE_CPU3_", pspr_cpu3)
REGION_ALIAS("DATA_DSPR_CPU3_", dspr_cpu3)
REGION_ALIAS("DATA_DLMU_CPU3_", dlmu_cpu3)
/* CPU4: Output sections to memory region mapping */
REGION_ALIAS("CODE_CPU4_", bl_flash)
REGION_ALIAS("RODATA_CPU4_", bl_flash)
REGION_ALIAS("RAMCODE_CPU4_", pspr_cpu4)
REGION_ALIAS("DATA_DSPR_CPU4_", dspr_cpu4)
REGION_ALIAS("DATA_DLMU_CPU4_", dlmu_cpu4)
/* CPU5: Output sections to memory region mapping */
REGION_ALIAS("CODE_CPU5_", bl_flash)
REGION_ALIAS("RODATA_CPU5_", bl_flash)
REGION_ALIAS("RAMCODE_CPU5_", pspr_cpu5)
REGION_ALIAS("DATA_DSPR_CPU5_", dspr_cpu5)
REGION_ALIAS("DATA_DLMU_CPU5_", dlmu_cpu5)
/* Local CSA per CPU. 256 max number, 64 byte entries */
CSA_SIZE = 256 * 64;
/* Local stack per CPU. */
STACK_SIZE = 4K;
/* Shared heap. Only use in a pinch for compatibility with stdlib */
__HEAP_SIZE = DEFINED (__HEAP_SIZE) ? __HEAP_SIZE : 4K;
/* Pickup the common sections */
INCLUDE tc3tc_sections.ld
/* Export the symbols required by wolfBoot */
PROVIDE(_start_text = ADDR(.tc3tc_crt_boot));