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 07:49:49 PST 2015


> It is required on NetBSD. GCC also uses it on ARMEB. Please note that
> the change is in the NetBSD toolchain only, not the generic one.

Anything can be justified on those grounds (and sometimes is, not just
by NetBSD), but using it to *add* legacy is extremely sketchy.

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.

I maintain this patch should not have been committed, at least without
more thought and discussion.

Tim.



More information about the cfe-commits mailing list