llvm-project
llvm-project copied to clipboard
[ld] [lto] using ld and lto, crash while dynamic compile executable
using lto and ld in arm, crash finally dynamic compile executable.
now I find in arm, ld and lto are incompatible。
just like it:
int
main ()
{
return 0;
}
clang++ ld.C -flto -o ld.o -c
clang++ ld.o -flto -fuse-ld=ld
It will crashed use 15.0.4 clang 2.41 ld
@Zhenhang1213: Could you please elaborate?
@Zhenhang1213: Could you please elaborate?
ok, it fixed by John Dong https://sourceware.org/bugzilla/show_bug.cgi?id=32870