Skip to content

Commit 82116f6

Browse files
committed
toolchain: gcc: Define output format for or1k-elf
The OpenRISC or1k-elf GCC compiler output format is named "elf32-or1k". This patch adds an OUTPUT_FORMAT linker macro for this platform. Signed-off-by: Joel Holdsworth <[email protected]>
1 parent 57ac604 commit 82116f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/zephyr/linker/linker-tool-gcc.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@
5959
/* Not needed */
6060
#elif defined(CONFIG_SPARC)
6161
OUTPUT_FORMAT("elf32-sparc")
62+
#elif defined(CONFIG_OPENRISC)
63+
OUTPUT_FORMAT("elf32-or1k")
6264
#else
6365
#error Arch not supported.
6466
#endif

0 commit comments

Comments
 (0)