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. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils