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 <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
fc9f976485
commit
c2666c3138
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ static inline bool ptr_in_rodata(const char *addr)
|
||||||
#define RO_END 0
|
#define RO_END 0
|
||||||
#elif defined(CONFIG_ARC) || defined(CONFIG_ARM) || defined(CONFIG_X86) \
|
#elif defined(CONFIG_ARC) || defined(CONFIG_ARM) || defined(CONFIG_X86) \
|
||||||
|| defined(CONFIG_RISCV) || defined(CONFIG_ARM64) \
|
|| defined(CONFIG_RISCV) || defined(CONFIG_ARM64) \
|
||||||
|| defined(CONFIG_NIOS2) || defined(CONFIG_MIPS)
|
|| defined(CONFIG_NIOS2) || defined(CONFIG_MIPS) || defined(CONFIG_SPARC)
|
||||||
extern char __rodata_region_start[];
|
extern char __rodata_region_start[];
|
||||||
extern char __rodata_region_end[];
|
extern char __rodata_region_end[];
|
||||||
#define RO_START __rodata_region_start
|
#define RO_START __rodata_region_start
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue