From owner-freebsd-arm@FreeBSD.ORG Tue Dec 25 11:57:26 2012 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EF6E0EE0 for ; Tue, 25 Dec 2012 11:57:26 +0000 (UTC) (envelope-from aoyama@peach.ne.jp) Received: from moon.peach.ne.jp (moon.peach.ne.jp [203.141.148.98]) by mx1.freebsd.org (Postfix) with ESMTP id B00398FC0A for ; Tue, 25 Dec 2012 11:57:26 +0000 (UTC) Received: from moon.peach.ne.jp (localhost [127.0.0.1]) by moon.peach.ne.jp (Postfix) with ESMTP id CE23239FA3; Tue, 25 Dec 2012 20:57:24 +0900 (JST) Received: from artemis (unknown [172.18.0.20]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by moon.peach.ne.jp (Postfix) with ESMTPSA id B9AB839D5E; Tue, 25 Dec 2012 20:57:24 +0900 (JST) Message-ID: From: "Daisuke Aoyama" To: "Andrew Turner" References: <20121225202326.1488fc5d@fubar.geek.nz> In-Reply-To: <20121225202326.1488fc5d@fubar.geek.nz> Subject: Re: FreeBSD/armv6z/clang on Raspberry Pi 512MB (with U-Boot + ubldr) Date: Tue, 25 Dec 2012 20:57:20 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8117.416 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8117.416 X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Dec 2012 11:57:27 -0000 > As of r244640 we should have clang support in head. Do you still need > to patch clang after this revision? I didn't check/build it, but it seems that latest clang is OK for OABI. However, it cannot be used in arm kernel because of TSIZ limitation. (other default choice is my taste/fun, not requirements) Please check below files in the patch: sys/arm/include/vmparam.h sys/conf/options.arm In my case, at least MAXTSIZ=20MB is required for -O2 optimized world. (-O1, -O0 are required more than -O2, of course) So, changeable MAXTSIZ is useful for clang. Increasing MAXTSIZ might be better when clang build. But I don't know what value is appropriate. Note: the patch contains clang, ARM11 and RPI specific patches. P.S. Thank you for many of committing. Now binutils can be used without patch. -- Daisuke Aoyama