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

Tim Northover t.p.northover at gmail.com
Mon Jan 26 09:25:58 PST 2015


>> In particular I think some change *should* be in the generic
>> toolchain. My tests indicate that GCC's behaviour is to pass --be8 by
>> default for v7 (& v6m), not for v5, and to require -Wl,--be in the
>> middle.
>
> This is confusing... Are you proposing we do the same?

Yes. It looks to me like the images we produce now for v7 will be
simply unloadable: the instructions are in the wrong order and the
linker has to be told to switch them round (the --be8 option).

It's possible ld-linux.so is clever enough to do this rewriting at
dynamic-load time, but even if it does that's slow and sub-optimal.
Bare metal is just going to fail to execute the code.

Tim.



More information about the cfe-commits mailing list