From owner-freebsd-toolchain@freebsd.org Mon Oct 17 21:11:48 2016 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 15718C15DE5 for ; Mon, 17 Oct 2016 21:11:48 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-qk0-x231.google.com (mail-qk0-x231.google.com [IPv6:2607:f8b0:400d:c09::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C42D1918 for ; Mon, 17 Oct 2016 21:11:47 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by mail-qk0-x231.google.com with SMTP id z190so259114662qkc.2 for ; Mon, 17 Oct 2016 14:11:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=DfUv/Sq7E+qkgnqcOnDEzVYMkgksEjclrxSCCfI+pqc=; b=ckLZb01mUes2lPj2sZ6yoUwj3ObdlCCmO33zKlbft1aV6fdqHvjpuU4xLUZm13Kp4p NsIHSXuR8jlkHNjB9w0lE8xzvuWvjD+u/+gY91QQdEJCyZQJn/ZcgH9fJHprRiaZI/oZ iGA09kUFbPAo3+yt28O6WBqpWANP55anVvEF064rnwgm+sfx3FRAeYHhIPMuPMHiDezx 22CY66Em6rUVKq3mqAWhudLz7RzBclCzf6i+llTQ9tOa5G0pAC7TI2AFOeqJRnFCElTa rFYYGfWbj/kaAm1kZwR0iPUzkZAk9eTOKXGhNxIvx1qxB3zzeckq8/qGYDBxrOWenR9S vViA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=DfUv/Sq7E+qkgnqcOnDEzVYMkgksEjclrxSCCfI+pqc=; b=PMrWMHp4uB/QgzKHI3rmmQiadx29HO5R66zokkxMb0p8OwGD96nYZDzW+ykCVExxoK WJzs6moUPmlwNcywzDgOd4/24CsbKo0ii9AJF7ySth4Nc+G+Lq79EthppDjqdXs/cDpO wchpmUypnHyMzxZA4xYIxI1jcOq8LEjz2uTB5ifymBN4NkcqOXOvo6L+OENKOCWIPSub WXG+0lGV600l9K1Q/UYTS5ZkZzcrlRWAnlxXelHzjuEPUTcyP07Udt7ztH5LIHhjNqv8 VAAlqkD9xcEnjs2lj6D7waMfG8HRcI5+DLoU5N4TjIOnZTqrD1wQUklZ2WgQ6FLoP8cU aCqA== X-Gm-Message-State: AA6/9RlywU6/iiHdngFBNcdcHHeA6T7CW4SzMmuZ6+XoGiTABLGohyrKO5dwyfkOmGPVJHcgKLVuskdncQUa2h/t7/PyaIYP8Q32FeA8w6S/9DeeGJfhp5HRIxK7g3pURxz79/Hh1KFHiurC0HaLr3yk8rhmPEBm/uMzzzY4gkD+l4/+r1WtQr6SO3ph3gB1aOFdxxrzWbo= X-Received: by 10.55.169.65 with SMTP id s62mr30481611qke.105.1476738706667; Mon, 17 Oct 2016 14:11:46 -0700 (PDT) Received: from mutt-hardenedbsd ([63.88.83.66]) by smtp.gmail.com with ESMTPSA id v5sm16079711qtc.24.2016.10.17.14.11.45 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 17 Oct 2016 14:11:45 -0700 (PDT) Date: Mon, 17 Oct 2016 17:11:43 -0400 From: Shawn Webb To: freebsd-toolchain@freebsd.org Subject: RPI3 - clang 3.9.0 issues Message-ID: <20161017211143.GA20952@mutt-hardenedbsd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="YZ5djTAD1cGYuMQK" Content-Disposition: inline X-Operating-System: FreeBSD mutt-hardenedbsd 12.0-CURRENT-HBSD FreeBSD 12.0-CURRENT-HBSD X-PGP-Key: http://pgp.mit.edu/pks/lookup?op=vindex&search=0x6A84658F52456EEE User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2016 21:11:48 -0000 --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--