FreeBSD-arm with Clang
Andrew Turner
andrew at fubar.geek.nz
Sun Nov 4 09:01:14 UTC 2012
On Sat, 3 Nov 2012 21:47:27 +0800
Alie Tan <alie at affle.com> wrote:
> Hi,
>
> Have you tried building FreeBSD-arm with Clang? Please share your
> exeperience. Would be better if Tim can add this compiler option on
> his Beaglebone github script.
The version of clang we have in FreeBSD is unable to build FreeBSD/ARM
binaries. I have a patch to support, however, while it produces a
working kernel, all userland programs crash before they get into main().
The problem I'm having with userland appears to be in crtend.o in the
__do_global_ctors_aux function. It loads a list of functions to call
but appears to be attempting to call a NULL pointer. I'm not yet sure
the cause of this.
Andrew
More information about the freebsd-arm
mailing list