>> 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.
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to