From b23784bf7e463fc51e5ef7309825032ef7dc2d39 Mon Sep 17 00:00:00 2001 From: Daniel Leung Date: Mon, 30 Nov 2020 11:17:49 -0800 Subject: [PATCH] nios2: add _image_rodata_start/end to linker script This adds the _image_rodata_start and _image_rodata_end symbols to NIOS2's linker script. Signed-off-by: Daniel Leung --- include/arch/nios2/linker.ld | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/arch/nios2/linker.ld b/include/arch/nios2/linker.ld index 71e1608826d..ef6926faf54 100644 --- a/include/arch/nios2/linker.ld +++ b/include/arch/nios2/linker.ld @@ -133,6 +133,8 @@ SECTIONS PROVIDE(gp = _gp); #endif + _image_rodata_start = .; + #include SECTION_PROLOGUE(_RODATA_SECTION_NAME,,) @@ -153,6 +155,9 @@ SECTIONS #include + _image_rodata_end = .; + _image_rodata_size = _image_rodata_end - _image_rodata_start; + _image_rom_end = .; __data_rom_start = ALIGN(4); /* XIP imaged DATA ROM start addr */