Skip to content

Commit f040627

Browse files
committed
toolchain: gcc: Added symbol attributes for OpenRISC
A common set of macros: GTEXT(), GDATA(), WTEXT() and WDATA() is defined for Arm, Arm66, MIPS, Nios II, RISC-V and Xtensa. This patch adds OpenRISC to this set. Signed-off-by: Joel Holdsworth <[email protected]>
1 parent f006e8f commit f040627

File tree

1 file changed

+1
-1
lines changed
  • include/zephyr/toolchain

1 file changed

+1
-1
lines changed

include/zephyr/toolchain/gcc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ do { \
370370

371371
#if defined(CONFIG_ARM) || defined(CONFIG_NIOS2) || defined(CONFIG_RISCV) \
372372
|| defined(CONFIG_XTENSA) || defined(CONFIG_ARM64) \
373-
|| defined(CONFIG_MIPS)
373+
|| defined(CONFIG_MIPS) || defined(CONFIG_OPENRISC)
374374
#define GTEXT(sym) .global sym; .type sym, %function
375375
#define GDATA(sym) .global sym; .type sym, %object
376376
#define WTEXT(sym) .weak sym; .type sym, %function

0 commit comments

Comments
 (0)