Skip to content

Commit a7d79ab

Browse files
committed
openrisc: linker: Use zephyr's convention for rodata
Zephyr maps the start and end of the rodata section with variables using the __rodata_region_start and __rodata_region_end. This patch adopts this convention for the OpenRISC architecture. Signed-off-by: Joel Holdsworth <jholdsworth@nvidia.com>
1 parent 49e766c commit a7d79ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/zephyr/linker/utils.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ static inline bool linker_is_in_rodata(const void *addr)
3636
#if defined(CONFIG_ARM) || defined(CONFIG_ARC) || defined(CONFIG_X86) || \
3737
defined(CONFIG_ARM64) || defined(CONFIG_NIOS2) || \
3838
defined(CONFIG_RISCV) || defined(CONFIG_SPARC) || \
39-
defined(CONFIG_MIPS) || defined(CONFIG_XTENSA)
39+
defined(CONFIG_MIPS) || defined(CONFIG_XTENSA) || \
40+
defined(CONFIG_OPENRISC)
4041
extern char __rodata_region_start[];
4142
extern char __rodata_region_end[];
4243
#define RO_START __rodata_region_start

0 commit comments

Comments
 (0)