public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Mark Harmstone <mark@harmstone.com>
To: "Martin Storsjö" <martin@martin.st>, "Jan Beulich" <jbeulich@suse.com>
Cc: binutils@sourceware.org, wej22007@outlook.com, zac.walker@linaro.org
Subject: Re: [PATCH 5/5] Add aarch64-w64-mingw32 target
Date: Tue, 20 Dec 2022 13:18:12 +0000	[thread overview]
Message-ID: <b6fd3b64-a989-53c3-8970-57e587474d5b@harmstone.com> (raw)
In-Reply-To: <25d61968-ddc4-8751-3ae3-6242a14c7048@martin.st>

On 18/12/22 22:44, Martin Storsjö wrote:
> 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
>
Yes, as Martin says, it's a bit eclectic. aarch64-w64-mingw32 is also the name that LLVM is using already.

Mark


  reply	other threads:[~2022-12-20 13:18 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-16  2:13 [PATCH 1/5] Fix size of external_reloc for pe-aarch64 Mark Harmstone
2022-12-16  2:13 ` [PATCH 2/5] Skip ELF-specific tests when targeting pe-aarch64 Mark Harmstone
2022-12-16  7:07   ` Jan Beulich
2022-12-21 20:19     ` Mark Harmstone
2022-12-22  7:38       ` Jan Beulich
2022-12-16  2:13 ` [PATCH 3/5] Add pe-aarch64 relocations Mark Harmstone
2022-12-16  2:13 ` [PATCH 4/5] Add .secrel32 for pe-aarch64 Mark Harmstone
2022-12-16  2:14 ` [PATCH 5/5] Add aarch64-w64-mingw32 target Mark Harmstone
2022-12-16  7:28   ` Jan Beulich
2022-12-18 22:44     ` Martin Storsjö
2022-12-20 13:18       ` Mark Harmstone [this message]
2022-12-16  7:03 ` [PATCH 1/5] Fix size of external_reloc for pe-aarch64 Jan Beulich
2022-12-16 10:47   ` Tamar Christina
2022-12-20 12:59     ` Mark Harmstone
2022-12-20 13:10       ` Jan Beulich
2022-12-20 13:38         ` Tamar Christina

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b6fd3b64-a989-53c3-8970-57e587474d5b@harmstone.com \
    --to=mark@harmstone.com \
    --cc=binutils@sourceware.org \
    --cc=jbeulich@suse.com \
    --cc=martin@martin.st \
    --cc=wej22007@outlook.com \
    --cc=zac.walker@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).