lto support for ARM?

I tried clang-11 + lld-11 from 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 and get the same error

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?