arch: riscv: linker script: add support for rom_start section
With this change, we can put contents into rom_start section by calling zephyr_linker_sources(ROM_START ...) Signed-off-by: Dino Li <Dino.Li@ite.com.tw> Co-authored-by: Torsten Tejlmand Rasmussen Change-Id: If1169423b013d3e4df52d91cdb2fbdddc3bace7b
This commit is contained in:
parent
958c79ea5a
commit
2bf63134e8
2 changed files with 11 additions and 1 deletions
|
@ -108,6 +108,15 @@ SECTIONS
|
|||
KEEP(*(.vectors.*))
|
||||
} GROUP_LINK_IN(ROMABLE_REGION)
|
||||
|
||||
SECTION_PROLOGUE(rom_start,,)
|
||||
{
|
||||
. = ALIGN(16);
|
||||
/* Located in generated directory. This file is populated by calling
|
||||
* zephyr_linker_sources(ROM_START ...).
|
||||
*/
|
||||
#include <snippets-rom-start.ld>
|
||||
} GROUP_LINK_IN(ROMABLE_REGION)
|
||||
|
||||
SECTION_PROLOGUE(_RESET_SECTION_NAME,,)
|
||||
{
|
||||
KEEP(*(.reset.*))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue