https://sourceware.org/bugzilla/show_bug.cgi?id=23600
Bug ID: 23600 Summary: Link failure when using clang LTO + linker script with INPUTs Product: binutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: mh-sourceware at glandium dot org Target Milestone: --- $ cat <<EOF > main.c int main() { return 0; } EOF $ clang -flto -o main.o -c main.c $ cat <<EOF > main.ld INPUT(main.o) EOF $ clang -flto -o main main.ld /usr/bin/ld: skipping incompatible main.o when searching for main.o /usr/bin/ld: cannot find main.o clang: error: linker command failed with exit code 1 (use -v to see invocation) This works with gold. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils