bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/23600] New: Link failure when using clang LTO + linker script wi


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

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.


reply via email to

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