This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Fix BFD format matching for x86_64-w64-mingw32 -m32 LTO
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Mon, 15 Feb 2016 17:15:21 -0800
- Subject: Re: Fix BFD format matching for x86_64-w64-mingw32 -m32 LTO
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot DEB dot 2 dot 10 dot 1602111610320 dot 29940 at digraph dot polyomino dot org dot uk> <CAMe9rOroz1Q0ohn_6G=9dtXCdSbcby+jZ=DaKzXRY_1VUghVeQ at mail dot gmail dot com> <alpine dot DEB dot 2 dot 10 dot 1602160025090 dot 14423 at digraph dot polyomino dot org dot uk> <CAMe9rOrMr1Lx5sb1rtuTr5yxGUmxfWP9Qd2=gKCp9zaYQGyHUA at mail dot gmail dot com> <alpine dot DEB dot 2 dot 10 dot 1602160054590 dot 14423 at digraph dot polyomino dot org dot uk>
On Mon, Feb 15, 2016 at 4:56 PM, Joseph Myers <joseph@codesourcery.com> wrote:
> On Mon, 15 Feb 2016, H.J. Lu wrote:
>
>> On Mon, Feb 15, 2016 at 4:26 PM, Joseph Myers <joseph@codesourcery.com> wrote:
>> > On Sun, 14 Feb 2016, H.J. Lu wrote:
>> >
>> >> I have a related patch for:
>> >>
>> >> https://bugzilla.redhat.com/show_bug.cgi?id=1174065
>> >>
>> >> I was wondering if it works for you.
>> >
>> > That patch doesn't do anything for my issue; with it applied but not mine,
>> > I still see errors of the form:
>> >
>> > /tmp/ccSAdUaE.o: file not recognized: File format is ambiguous
>> > /tmp/ccSAdUaE.o: matching formats: pe-i386 pei-i386
>> > collect2: error: ld returned 1 exit status
>> >
>>
>> Is your problem related to:
>>
>> https://sourceware.org/bugzilla/show_bug.cgi?id=18199
>
> Only in a very loose sense.
>
>> Is the fix insufficient?
>
> They are separate issues. See the analysis in my patch posting.
>
Would you mind giving users/hjl/lto-mixed/master branch a try? It
may have fixed your problem in a different way by adding
.+enum bfd_lto_object_type
+. {
+. lto_non_object,
+. lto_non_ir_object,
+. lto_ir_object,
+. lto_mixed_object
+. };
--
H.J.