Error Using -flto with Clang for RISC-V Cross Compilation: Unable to Pass LLVM Bit-Code Files to Linker
I am trying to cross-compile a program for RISC-V using Clang (LLVM) with the -flto (Link Time Optimization) flag, but I encounter a linking error. The error message suggests that LLVM bit-code files cannot be passed to the linker. Here is the command I used: