From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 77266 invoked by alias); 3 Jan 2017 07:32:44 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 77254 invoked by uid 89); 3 Jan 2017 07:32:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=39am, 39AM, our X-HELO: prv-mh.provo.novell.com Received: from prv-mh.provo.novell.com (HELO prv-mh.provo.novell.com) (137.65.248.74) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 03 Jan 2017 07:32:41 +0000 Received: from INET-PRV-MTA by prv-mh.provo.novell.com with Novell_GroupWise; Tue, 03 Jan 2017 00:32:40 -0700 Message-Id: <586B61A5020000780012C791@prv-mh.provo.novell.com> Date: Tue, 03 Jan 2017 07:32:00 -0000 From: "Jan Beulich" To: "Alan Modra" Cc: Subject: Re: ambiguous file formats coff-x86_64 / pe-x86_64 References: <585BF4AB020000780012BBF5@prv-mh.provo.novell.com> <20161222214952.GB2896@bubble.grove.modra.org> In-Reply-To: <20161222214952.GB2896@bubble.grove.modra.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-SW-Source: 2017-01/txt/msg00026.txt.bz2 >>> On 22.12.16 at 22:49, wrote: > On Thu, Dec 22, 2016 at 07:43:39AM -0700, Jan Beulich wrote: >> binary. We've now had reports that on binutils with both coff-x86_64 >> and pe-x86_64 configured in (but defaulting to ELF), linking fails due >> to the object being ambiguous. >=20 > match_priority was invented for exactly this sort of situation. Interesting: I don't see how that would help here, as I don't see why (and on what basis) to "prefer" one variant over the other. Looking over the source, at least relocation addend handling is different between the two, and without other (sideband?) info I don't think one can guess the format to be used. The situation in our case is different, because we don't care which of the two gets used, ad we don't care about their differences. Jan