bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/23600] Link failure when using clang LTO + linker script with IN


From: mh-sourceware at glandium dot org
Subject: [Bug ld/23600] Link failure when using clang LTO + linker script with INPUTs
Date: Fri, 31 Aug 2018 23:41:49 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=23600

--- Comment #6 from Mike Hommey <mh-sourceware at glandium dot org> ---
It works, and it still detects cases where the IR file doesn't have the right
architecture:

$ clang -flto -o main.o -c main.c
$ clang -flto -o main main.ld
$ clang -m32 -flto -o main main.ld
/tmp/bin/ld: i386:x86-64 architecture of input file `/tmp/lto-llvm-9bef61.o' is
incompatible with i386 output
clang: error: linker command failed with exit code 1 (use -v to see invocation)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]