Skip to content

Commit c2666c3

Browse files
nordic-krchnashif
authored andcommitted
lib: os: cbprintf: Use rodata section on sparc
Use rodata region markers to detect if string is read only on sparc. It was previously disabled but now can be used. Signed-off-by: Krzysztof Chruscinski <[email protected]>
1 parent fc9f976 commit c2666c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/os/cbprintf_packaged.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static inline bool ptr_in_rodata(const char *addr)
3131
#define RO_END 0
3232
#elif defined(CONFIG_ARC) || defined(CONFIG_ARM) || defined(CONFIG_X86) \
3333
|| defined(CONFIG_RISCV) || defined(CONFIG_ARM64) \
34-
|| defined(CONFIG_NIOS2) || defined(CONFIG_MIPS)
34+
|| defined(CONFIG_NIOS2) || defined(CONFIG_MIPS) || defined(CONFIG_SPARC)
3535
extern char __rodata_region_start[];
3636
extern char __rodata_region_end[];
3737
#define RO_START __rodata_region_start

0 commit comments

Comments
 (0)