bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/19985] ld/configure.tgt: LE ppc64 targets do not include BE emul


From: vapier at gentoo dot org
Subject: [Bug ld/19985] ld/configure.tgt: LE ppc64 targets do not include BE emulations
Date: Tue, 26 Apr 2016 06:27:28 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=19985

--- Comment #10 from Mike Frysinger <vapier at gentoo dot org> ---
(In reply to Alan Modra from comment #9)

counter point:

bfd already does it for powerpc linux targets (and more):
ppc     -> enable BE & LE, 32 & 64, default to BE/32
ppcle   -> enable BE & LE, 32 & 64, default to LE/32
ppc64   -> enable BE & LE, 32 & 64, default to BE/64
ppc64le -> enable BE & LE, 32 & 64, default to LE/64

the linker should be consistent, and including these targets by default adds
very little overhead.  it already has been at least to get biarch support.

you're right that gcc doesn't do this by default, but it's trivial to pass
--enable-targets=all, and also adds very little overhead.  plus, i expect most
people do this already in order to just get biarch support (32bit+64bit) which
is needed to build a 64bit kernel from a 32bit userland (and a 32bit kernel
from a 64bit userland which still makes sense in the VM case).  this does not
require a full toolchain as it only affects gcc's codegen steps.  which is the
only thing grub cares about since it's producing bare metal code here.

so what's the problem with having the linker be consistent with bfd and
including the full 32/64 be/le matrix by default ?  afaict, at least bfd has
behaved this way for over a decade and no one has noticed/cared/complained.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]