-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmemory_writer_internal.def.s
70 lines (61 loc) · 1.3 KB
/
memory_writer_internal.def.s
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
/*
* Copyright (c) 2015-2021, Renesas Electronics Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
MEMORY {
RAM2 (rwxa): ORIGIN = 0x00010000, LENGTH = 0x00001E00
#if (TRUSTED_BOARD_BOOT != 1)
CERT (rwxa): ORIGIN = 0x00011E00, LENGTH = 0x00000200
RAM (rwxa): ORIGIN = 0x00012000, LENGTH = 0x0000D000
#else
RAM (rwxa): ORIGIN = 0x00013000, LENGTH = 0x0000C000
#endif
RAM3 (rwxa): ORIGIN = 0x0002F000, LENGTH = 0x00001000
}
SECTIONS
{
#if (TRUSTED_BOARD_BOOT != 1)
.cert : {
. = 0x00000000;
LONG(__LOAD_SIZE__)
FILL(0xFF)
. = 0x000001FC;
LONG(0xAA55FFFF)
} > CERT
#else
/*
This is the section where the boot parameter and manifests for
trusted board boot are located.
Boot parameter and manifests are created in the external environment.
*/
#endif
.text : {
__RO_START__ = .;
*(.text*)
*(.rodata*)
. = NEXT(64);
__RO_END__ = .;
} > RAM
.data : {
__DATA_START__ = .;
*(.data)
. = NEXT(64);
__DATA_END__ = .;
} > RAM
__DATA_SIZE__ = SIZEOF(.data);
__LOAD_SIZE__ = __DATA_END__ - __RO_START__;
.bss : {
__BSS_START__ = .;
*(.bss)
*(COMMON)
. = NEXT(64);
__BSS_END__ = .;
} > RAM2
stacks (NOLOAD) : ALIGN(64) {
__STACKS_START__ = .;
KEEP(*(writer_stack))
__STACKS_END__ = .;
} > RAM2
__BSS_SIZE__ = SIZEOF(.bss);
}