[PATCH 1/8] ld: Rename aarch64pe emulation target to arm64pe
Martin Storsjö
martin@martin.st
Tue Jan 3 20:05:50 GMT 2023
On Tue, 3 Jan 2023, Tamar Christina wrote:
> I don't think we'll need to patch LLVM as you typically don't specify
> the emulation when using ld.
When cross compiling, then the compiler driver (gcc or clang) will specify
it.
> 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.
Currently, in mingw scenarios, you can have gcc call ld.bfd or ld.lld, and
you can have clang call either ld.bfd or ld.lld.
Currently clang calls the linker with "-m arm64pe" and ld.lld recognizes
and handles that same option. If clang calls ld.bfd, then ld.bfd also
needs to recognize "-m arm64pe".
If gcc decides to go with a different option name than "-m arm64pe", then
ld.lld will also need to add support for that specific option spelling,
for the gcc+ld.lld combination to work.
Therefore, this just adds an entirely unnecessary split of the option
names - why not just stick with the current option name which is in active
use?
// Martin
More information about the Binutils
mailing list