linker: Add ROM_SECTIONS location
Currently iterable sections as per the documentation are added with zephyr_linker_sources(SECTIONS ...) after bss/noinit. This commit allows putting sections after common-rom. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
parent
eea1573b2b
commit
99366dd2be
26 changed files with 116 additions and 2 deletions
|
@ -156,6 +156,10 @@ SECTIONS
|
|||
|
||||
__rodata_region_start = .;
|
||||
#include <zephyr/linker/common-rom.ld>
|
||||
/* Located in generated directory. This file is populated by calling
|
||||
* zephyr_linker_sources(ROM_SECTIONS ...). Useful for grouping iterable RO structs.
|
||||
*/
|
||||
#include <snippets-rom-sections.ld>
|
||||
#include <zephyr/linker/thread-local-storage.ld>
|
||||
|
||||
SECTION_PROLOGUE(_RODATA_SECTION_NAME,,)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue