Using a fixed size means crashing if there's not enough space for
that, or wasting memory if there's too much.
Signed-off-by: Keith Packard <keithp@keithp.com>
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 16K
}
-C_STACK_SIZE = 512;
-
INCLUDE registers.ld
SECTIONS {
__bss_end__ = .;
} >ram
- PROVIDE(__stack__ = . + C_STACK_SIZE);
+ PROVIDE(__stack__ = ORIGIN(ram) + LENGTH(ram));
PROVIDE(end = .);
}
INCLUDE registers.ld
EXTERN (stm_interrupt_vector)
-C_STACK_SIZE = 512;
SECTIONS {
. = ORIGIN(rom);
__bss_end__ = .;
} >ram
- PROVIDE(__stack__ = . + C_STACK_SIZE);
+ PROVIDE(__stack__ = ORIGIN(ram) + LENGTH(ram));
PROVIDE(end = .);
}