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 00:48:02 +0000

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

--- Comment #1 from Mike Hommey <mh-sourceware at glandium dot org> ---
In ldfile_try_open_bfd, we end up in the error case presumably because:

(rr) print check->filename
$2 = 0x5582b37b57e0 "main.o"
(rr) print check->arch_info
$3 = (const struct bfd_arch_info *) 0x5582b3286fe0 <bfd_default_arch_struct>
(rr) print link_info.output_bfd->arch_info
$4 = (const struct bfd_arch_info *) 0x5582b328fa60 <bfd_x86_64_arch>

This probably only happens because INPUT makes ld lookup in search directories,
and find an appropriate input for the given output, while an explicit path on
the command line just doesn't do such lookup and never cares to check the
arch_info is compatible.

-- 
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]