Skip to content

Commit 4b5cb61

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 e0184e8 commit 4b5cb61

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
@@ -366,7 +366,7 @@ do { \
366366

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

0 commit comments

Comments
 (0)