ed85b76093
The error message is obscure when CONFIG_PRIVILEGED_STACK_TEXT_AREA is configured incorrectly. It looks like this: zephyr/linker.cmd:73 cannot move location counter backwards (from 0000000000069bfc to 0000000000069bd8) This patch re-writes the linker script mechanism in a (believed and tested) semantically equivalent way such that it is possible to use an assertion. The assertion's error message now looks like this: Memory region Used Size Region Size %age Used FLASH: 503012 B 1 MB 47.97% SRAM: 53760 B 256 KB 20.51% IDT_LIST: 120 B 2 KB 5.86 real-ld: The configuration system has incorrectly set 'CONFIG_PRIVILEGED_STACK_TEXT_AREA' to 128, which is not big enough. You must through Kconfig either disable 'CONFIG_USERSPACE', or set 'CONFIG_PRIVILEGED_STACK_TEXT_AREA' to a value larger than 128 . collect2: error: ld returned 1 exit status Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no> |
||
---|---|---|
.. | ||
common-ram.ld | ||
common-rom.ld | ||
debug-sections.ld | ||
intlist.ld | ||
kobject-rom.ld | ||
kobject-text.ld | ||
kobject.ld | ||
linker-defs.h | ||
linker-tool-gcc.h | ||
linker-tool.h | ||
priv_stacks-noinit.ld | ||
priv_stacks-rom.ld | ||
priv_stacks-text.ld | ||
priv_stacks.ld | ||
rel-sections.ld | ||
section_tags.h | ||
sections.h |