diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libgcc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libgcc.c b/src/lib/libgcc.c index 99a0749a45..88b3f9be01 100644 --- a/src/lib/libgcc.c +++ b/src/lib/libgcc.c @@ -20,7 +20,8 @@ * <lib.h> in case GCC does not have an assembly version for this arch. */ -#if !IS_ENABLED(CONFIG_ARCH_X86) /* work around lack of --gc-sections on x86 */ +#if !IS_ENABLED(CONFIG_ARCH_X86) /* work around lack of --gc-sections on x86 */ \ + && !IS_ENABLED(CONFIG_ARCH_RISCV_RV32) /* defined in rv32 libgcc.a */ int __clzsi2(u32 a); int __clzsi2(u32 a) { |