[cfe-users] lto support for ARM?

Ralph Doncaster via cfe-users cfe-users at lists.llvm.org
Thu Feb 25 15:07:30 PST 2021


I tried clang-11 + lld-11 from apt.llvm.org on Debian 10, and when I
try to use lto with arm targets like armv6m-none-eabi I get an error
message: "unable to pass LLVM bit-code files to linker"

I tried a clang-11 mingw build (from
https://github.com/mstorsjo/llvm-mingw) and get the same error
message.

Compiling without the -flto flag works fine.  If I compile for a x86
target, -flto works.  Is there some way to get lto working with ARM
Cortex-M targets?


More information about the cfe-users mailing list