File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 9
9
/* Loaders like to put stuff in low memory (< 1M), so we don't use it. */
10
10
ram_min = 1M;
11
11
ram_max = 2M;
12
- /* Our stack grows down from ram_max. TODO : Add a guard for stack overflows. */
13
- stack_size = 64K;
14
12
15
13
SECTIONS
16
14
{
@@ -28,16 +26,17 @@ SECTIONS
28
26
.data : { *(.data .data.*) }
29
27
data_size = . - data_start;
30
28
31
- /* The BSS section isn't mapped from any file data. It is simply zeroed
32
- in RAM. So our file size should be computed from here. */
33
- file_size = . - ram_min;
29
+ /* The BSS section isn't mapped from file data. It is just zeroed in RAM. */
34
30
.bss : {
35
31
bss_start = .;
36
32
*(.bss .bss.*)
37
33
bss_size = . - bss_start;
38
34
}
39
35
40
- ASSERT ((. <= ram_max - stack_size), "firmware size too big for RAM region")
36
+ /* Our stack grows down from ram_max. TODO : Add stack overflow guards. */
37
+ stack_size = 64K;
38
+ . = ram_max - stack_size;
39
+ .stack (NOLOAD) : { . += stack_size; } :NONE
41
40
42
41
/* Match edk2's GccBase.lds DISCARD section */
43
42
/DISCARD/ : {
You can’t perform that action at this time.
0 commit comments