Skip to content

Commit 30a56e2

Browse files
committed
sparc: add _image_rodata_start/end to linker script
This adds the _image_rodata_start and _image_rodata_end symbols to SPARC's arch linker script. Signed-off-by: Daniel Leung <[email protected]>
1 parent 5599d49 commit 30a56e2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/arch/sparc/linker.ld

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ SECTIONS
4040
} GROUP_LINK_IN(REGION_TEXT)
4141

4242
_image_text_end = .;
43+
_image_rodata_start = .;
4344

4445
#include <linker/common-rom.ld>
4546
#include <linker/thread-local-storage.ld>
@@ -61,7 +62,11 @@ SECTIONS
6162

6263
#include <linker/cplusplus-rom.ld>
6364

65+
_image_rodata_end = .;
66+
_image_rodata_size = _image_rodata_end - _image_rodata_start;
67+
6468
_image_rom_end = .;
69+
6570
__data_rom_start = .;
6671

6772

0 commit comments

Comments
 (0)