r227088 - For NetBSD/ARM-EB, link with --be8. Support for the older BE32 is

Joerg Sonnenberger joerg at britannica.bec.de
Tue Jan 27 08:09:03 PST 2015


On Mon, Jan 26, 2015 at 03:16:31PM -0800, Tim Northover wrote:
> > Well, my optimistic assumption is/was that all systems that care are
> > already supported NetBSD was just missing. So (a) which systems run on
> > ARM-EB at all (b) do they care about BE8 vs BE32 (c) what link flags do
> > they need.
> 
> I think it affects anyone using ld.bfd for big-endian ARM code. The
> ideal behaviour is probably:
> 
> 1. >=v7 (& v6m) code must pass --be8  (CPU only understands BE8 output)
> 2. <=v5 code mustn't pass --be8 (CPU does not understand BE8 output)
> 3. v6 code may or may not. (it's configurable in SCTLR) It probably
> should for neatness, but unfortunately compatibility with GCC probably
> requires us not to.

Well, attached patch implements the above for NetBSD and refactores it
into a function other toolchains can call.

Joerg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arm-eb-refactoring.diff
Type: text/x-diff
Size: 3254 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150127/b42c8c99/attachment.diff>


More information about the cfe-commits mailing list