Skip to content

Commit 106b1c2

Browse files
stephensmalleyAnas Nashif
authored andcommitted
arm: define _image_rodata_start/end
Define _image_rodata_start/end to match x86 and so that we can refer to them in the userspace test among others. Signed-off-by: Stephen Smalley <[email protected]>
1 parent 2055d75 commit 106b1c2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/arch/arm/cortex_m/scripts/linker.ld

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ SECTIONS
139139
__exidx_end = .;
140140
} GROUP_LINK_IN(ROMABLE_REGION)
141141

142+
_image_rodata_start = .;
143+
142144
#include <linker/common-rom.ld>
143145

144146
SECTION_PROLOGUE(_RODATA_SECTION_NAME,,)
@@ -167,6 +169,7 @@ SECTIONS
167169
. = ALIGN(4);
168170
} GROUP_LINK_IN(ROMABLE_REGION)
169171

172+
_image_rodata_end = .;
170173
_image_rom_end = .;
171174

172175
GROUP_END(ROMABLE_REGION)

0 commit comments

Comments
 (0)