public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Tamar Christina <Tamar.Christina@arm.com>
To: Andrew Pinski <pinskia@gmail.com>, Mark Harmstone <mark@harmstone.com>
Cc: "Martin Storsjö" <martin@martin.st>,
	"Richard Earnshaw" <Richard.Earnshaw@foss.arm.com>,
	NightStrike <nightstrike@gmail.com>,
	"wej22007@outlook.com" <wej22007@outlook.com>,
	"zac.walker@linaro.org" <zac.walker@linaro.org>,
	binutils <binutils@sourceware.org>,
	"nickc@redhat.com" <nickc@redhat.com>
Subject: RE: [PATCH 1/8] ld: Rename aarch64pe emulation target to arm64pe
Date: Tue, 3 Jan 2023 19:41:20 +0000	[thread overview]
Message-ID: <VI1PR08MB5325215B59D72AB9A49F7A60FFF49@VI1PR08MB5325.eurprd08.prod.outlook.com> (raw)
In-Reply-To: <CA+=Sn1=tcO+iUQaFXp_Wx1WBk83zfFzKLQTuQV-oOMS9U=t0_A@mail.gmail.com>

Hi Mark,

> On Tue, Jan 3, 2023 at 10:21 AM Mark Harmstone <mark@harmstone.com>
> wrote:
> >
> > Hi Tamar,
> >
> > Is there any practical benefit to this? The emulation "aarch64pe" hasn't yet
> been seen in a released version of binutils, so it's not that anybody's relying
> on it. Giving the emulation a different name from LLVM, then adding a
> workaround so that LLVM still works, seems like it's adding unneeded
> complexity. Plus it also implies that someone will also have to patch LLVM to
> add a workaround the other way round.

The reason for insisting on this change is non-technical in nature.  For a project such
as binutils we always want the primary name to reflect what the architecture calls things.

As a matter of compatibility with other projects we can on top of that accept aliases.

I don't think we'll need to patch LLVM as you typically don't specify the emulation when
using ld.  Most projects that want cross toolchain support lookup the documentation where
we can explicitly point out that the alias is there for compatibility with other toolchains.

Kind Regards,
Tamar

> >
> > It's not like there's any consistency in the emulation naming as it is, as `ld -m
> help` will show you. Of the ELF emulations, some have "elf" at the beginning,
> some at the end, some have "elf32" or "elf64", others (presumably) have it
> implicit, some have underscores, some don't...
> 
> My thoughts. arm64 has always been a bad name and should not be
> referenced anywhere. It is bad that Microsoft and LLVM folks have started
> using it.
> We should be consistent with the elf targets here and use aarch64pe and
> then add an alias just for compatibility reasons with LLVM.
> We should push LLVM folks to the same and everyone over to aarch64
> instead of arm64.
> 
> Thanks,
> Andrew Pinski
> 
> >
> > Mark
> >
> > On 3/1/23 14:54, Tamar Christina wrote:
> > > Hi All,
> > >
> > > After some discussions, we would prefer if instead of renaming
> > > actual emul target (which also renamed the internal macros) that we
> > > provide a `targ_emul_alias` or similar instead.  This would allow us
> > > to keep the current naming as is, while still supporting the the emul as
> supported by clang.
> > >
> > > This would be similar to the already existing targ_alias which is
> > > used to alias the target triples.
> > >
> > > I believe (from a quick look) that this should all be do-able by
> > > modifying configure.ac in a similar way as targ_extra_emuls currently
> does.
> > >
> > > Thanks,
> > > Tamar
> > >
> > >> -----Original Message-----
> > >> From: Martin Storsjö <martin@martin.st>
> > >> Sent: Tuesday, January 3, 2023 2:14 PM
> > >> To: Richard Earnshaw <Richard.Earnshaw@foss.arm.com>
> > >> Cc: Tamar Christina <Tamar.Christina@arm.com>; NightStrike
> > >> <nightstrike@gmail.com>; Mark Harmstone <mark@harmstone.com>;
> > >> wej22007@outlook.com; zac.walker@linaro.org; binutils
> > >> <binutils@sourceware.org>; nickc@redhat.com
> > >> Subject: Re: [PATCH 1/8] ld: Rename aarch64pe emulation target to
> > >> arm64pe
> > >>
> > >> On Tue, 3 Jan 2023, Richard Earnshaw via Binutils wrote:
> > >>
> > >>> The problem with arm64 is that it also matches existing configure
> > >>> scripts that use arm* for the 32-bit targets.  I don't think this is a good
> idea.
> > >>> GNU tools have consistently used the official name for all targets.
> > >> This isn't for the name used in triples (which often are matched in
> > >> configure scripts etc), but used for the ld emulation mode - where
> > >> the current MinGW targets use the names "i386pe" for i386 and and
> "i386pep"
> > >> for x86_64. I don't believe it's common to match those emulation
> > >> names in configure scripts - these names are mostly a detail
> > >> between how the compiler driver invokes the linker, and the linker
> itself.
> > >>
> > >> // Martin
> >
> >

  parent reply	other threads:[~2023-01-03 19:41 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-30  2:40 Mark Harmstone
2022-12-30  2:40 ` [PATCH 2/8] Fix size of external_reloc for pe-aarch64 Mark Harmstone
2022-12-30  2:40 ` [PATCH 3/8] Skip ELF-specific tests when targeting pe-aarch64 Mark Harmstone
2022-12-30  2:40 ` [PATCH 4/8] Skip big-obj test for pe-aarch64 Mark Harmstone
2022-12-30  2:40 ` [PATCH 5/8] Add pe-aarch64 relocations Mark Harmstone
2022-12-30  2:40 ` [PATCH 6/8] Add .secrel32 for pe-aarch64 Mark Harmstone
2022-12-30  2:40 ` [PATCH 7/8] Add aarch64-w64-mingw32 target Mark Harmstone
2022-12-30  2:40 ` [PATCH 8/8] gas: Restore tc_pe_dwarf2_emit_offset for pe-aarch64 Mark Harmstone
2023-01-03 11:54 ` [PATCH 1/8] ld: Rename aarch64pe emulation target to arm64pe Nick Clifton
2023-01-03 11:59 ` NightStrike
2023-01-03 12:09   ` Tamar Christina
2023-01-03 14:08     ` Richard Earnshaw
2023-01-03 14:13       ` Martin Storsjö
2023-01-03 14:54         ` Tamar Christina
2023-01-03 15:51           ` Martin Storsjö
2023-01-03 15:57             ` Tamar Christina
2023-01-03 18:21           ` Mark Harmstone
2023-01-03 18:33             ` Andrew Pinski
2023-01-03 19:07               ` Mark Harmstone
2023-01-03 19:41               ` Tamar Christina [this message]
2023-01-03 20:05                 ` Martin Storsjö
2023-01-04  2:38                   ` Mark Harmstone
2023-01-04  9:51                     ` Nick Clifton
2023-01-04 10:25                       ` Martin Storsjö
2023-01-04 10:35                         ` Tamar Christina
2023-01-04 11:00                           ` Martin Storsjö
2023-01-04 11:08                             ` Tamar Christina
2023-01-04 11:36                               ` Martin Storsjö
2023-01-04 15:02                                 ` Nick Clifton
2023-01-05  2:33                                   ` Mark Harmstone
2023-01-05 11:01                                     ` Nick Clifton
2023-01-05 10:45                                   ` Tamar Christina
2023-01-03 14:14       ` Tamar Christina
2023-01-03 12:53   ` Martin Storsjö

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=VI1PR08MB5325215B59D72AB9A49F7A60FFF49@VI1PR08MB5325.eurprd08.prod.outlook.com \
    --to=tamar.christina@arm.com \
    --cc=Richard.Earnshaw@foss.arm.com \
    --cc=binutils@sourceware.org \
    --cc=mark@harmstone.com \
    --cc=martin@martin.st \
    --cc=nickc@redhat.com \
    --cc=nightstrike@gmail.com \
    --cc=pinskia@gmail.com \
    --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).