From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail8.parnet.fi (mail8.parnet.fi [77.234.108.134]) by sourceware.org (Postfix) with ESMTPS id 491D43949E3C for ; Sun, 18 Dec 2022 22:45:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 491D43949E3C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=martin.st Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=martin.st Received: from mail9.parnet.fi (mail9.parnet.fi [77.234.108.21]) by mail8.parnet.fi with ESMTP id 2BIMj1rt013474-2BIMj1ru013474; Mon, 19 Dec 2022 00:45:01 +0200 Received: from foo.martin.st (host-97-187.parnet.fi [77.234.97.187]) by mail9.parnet.fi (Postfix) with ESMTPS id 5928EA146B; Mon, 19 Dec 2022 00:45:00 +0200 (EET) Date: Mon, 19 Dec 2022 00:44:58 +0200 (EET) From: =?ISO-8859-15?Q?Martin_Storsj=F6?= To: Jan Beulich cc: Mark Harmstone , binutils@sourceware.org, wej22007@outlook.com, zac.walker@linaro.org Subject: Re: [PATCH 5/5] Add aarch64-w64-mingw32 target In-Reply-To: <35982909-6fe7-02f4-bad6-616469f0cda1@suse.com> Message-ID: <25d61968-ddc4-8751-3ae3-6242a14c7048@martin.st> References: <20221216021400.22309-1-mark@harmstone.com> <20221216021400.22309-5-mark@harmstone.com> <35982909-6fe7-02f4-bad6-616469f0cda1@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-FE-Policy-ID: 3:14:2:SYSTEM X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Fri, 16 Dec 2022, Jan Beulich via Binutils wrote: > On 16.12.2022 03:14, Mark Harmstone wrote: >> --- a/bfd/config.bfd >> +++ b/bfd/config.bfd >> @@ -249,9 +249,9 @@ case "${targ}" in >> targ_selvecs="aarch64_elf64_be_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_le_vec arm_elf32_be_vec aarch64_pei_le_vec aarch64_pe_le_vec" >> want64=true >> ;; >> - aarch64-*-pe*) >> + aarch64-*-pe* | aarch64-*-mingw*) >> targ_defvec=aarch64_pe_le_vec >> - targ_selvecs="aarch64_pe_le_vec aarch64_pei_le_vec" >> + targ_selvecs="aarch64_pe_le_vec aarch64_pei_le_vec aarch64_elf64_le_vec aarch64_elf64_be_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_le_vec arm_elf32_be_vec" >> want64=true >> targ_underscore=no >> ;; > > Here and elsewhere - are you really targeting a 32-bit ABI (as per the > title)? Or do you instead mean aarch64-*-mingw64, or yet more generically > aarch64-*-mingw*? (From the *-s I used you can see that I also find a > middle component "w64" odd. Despite being 64 bit, the OS part of these triples have traditionally always been "mingw32" (where the arch part of the triple indicates whether it is 32 or 64 bit). Some tools/libraries/build systems only ever match for "mingw32" here, while some might tolerate "mingw64" too even though it's not the norm. The "w64" bit in the vendor field is usually used to indicate the use of the "mingw-w64" fork of the mingw runtime (as opposed to the original mingw.org runtime). This is also used for 32 bit targets, such as i686-w64-mingw32. // Martin