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 <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2020-11-30 11:17:49 -08:00 committed by Carles Cufí
parent bf7a396538
commit b23784bf7e

View file

@ -133,6 +133,8 @@ SECTIONS
PROVIDE(gp = _gp);
#endif
_image_rodata_start = .;
#include <linker/common-rom.ld>
SECTION_PROLOGUE(_RODATA_SECTION_NAME,,)
@ -153,6 +155,9 @@ SECTIONS
#include <linker/cplusplus-rom.ld>
_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 */