Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Oct 2016 17:11:43 -0400
From:      Shawn Webb <shawn.webb@hardenedbsd.org>
To:        freebsd-toolchain@freebsd.org
Subject:   RPI3 - clang 3.9.0 issues
Message-ID:  <20161017211143.GA20952@mutt-hardenedbsd>

next in thread | raw e-mail | index | archive | help

--YZ5djTAD1cGYuMQK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hey All,

I'm submitting this report to this list as directed by Ed Maste.

The Raspberry Pi 3 is an ARMv8 SoC dev board. Within the last week,
FreeBSD added basic initial support for it. We don't currently have a
linker in HEAD for the arm64/aarch64 platform. The
projects/clang390-import branch contains lld, though, which supports
arm64/aarch64.

Over the past few days, I've been working on testing clang 3.9.0 and lld
on the RPI3. I've jotted down a few issues in FreeBSD's wiki:

https://wiki.freebsd.org/arm64/rpi3

Mainly:

low-level code like bootloaders (boot1.efi and loader.efi) do NOT work
with projects/clang390-import. When I use boot1.efi and loader.efi
compiled with HEAD (clang 3.8), they work.

When the kernel is compiled with clang 3.9.0, it seems to freeze after
being loaded by the clang 3.8 boot1.efi/loader.efi. I'm unsure if it's
actually frozen or if simply nothing is being outputted to the console.
Either way, I don't see console messages and the RPI3 _appears_ frozen.

I'm tracking down a potential issue with jemalloc compiled with clang
3.9.0, but I need to verify that the issue exists in vanilla FreeBSD in
addition to HardenedBSD. Most of my testing has been done with
HardenedBSD to-date.

If I find more issues or find the causes of the ones I've already
documented, I'll be sure to not only update the wiki, but update this
email thread as well.

If there's anything anyone would like me to try, please let me know.

Thanks,

--=20
Shawn Webb
Cofounder and Security Engineer
HardenedBSD

GPG Key ID:          0x6A84658F52456EEE
GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89  3D9E 6A84 658F 5245 6EEE

--YZ5djTAD1cGYuMQK
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJYBT6NAAoJEGqEZY9SRW7uuQwP/RWfUbyLzyI1Dvxdh1kfNMXU
wNTt25jBA0FEnlkgDYjXSIiJpccj2F532bqVxaiIpQpnq2PnL0g5lVa+SuAzxX6B
ODpe94hyVAvR/sDxNHKofULIdH8vvUaUphTKirAQcS6KSogUN374dzVd/T4drf/o
II8Vbakr4w83P7b18UYPlnLac2WTXS6qJElYbHd7tX2RFMHXWIfrnKVZIkHxI/3s
3Afj+yUKtuV/JjdAmwZSBuHbLFzOl+xu+udigVV83qweo2g10gZ7ygTs9lFhQMSK
K+z5gansnUpFjZ/DkvKVXypp1B1Ty+w9Lm1XGfYZJEvf5DcoNXTT1nlcEbayBuYA
ALyM3A9GE2A/2ilqy58+55hS5eGxC2ulnoSgRbPzmNMVNBE/S4BYd7kUKl3QkzFT
XQjcKDxGJLOXgYNgKUK4llNg/XntP2Fmh68b+XtRL7Y/kFapL3qqp3tHlnRPWxSb
kkAPnZEk6ol27k5HM35e6TtvGBnCoo+SsEqfSa53oeJbjvN7+PuMfufhr++qHzSx
ThKIZ33qsSJkk3lTEC28JROwDDOX14codkWmHdBUVcpShUBPvutZABCe1W8b8vGe
66DoglD3WN76TA3GWZhS/oGiYStoplDYIzDlT/r2dcVdX4U4GT/WkhC7FvMOvdwb
x/tqUpSYxVgdzG+O6tvR
=bsJ7
-----END PGP SIGNATURE-----

--YZ5djTAD1cGYuMQK--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161017211143.GA20952>