From owner-svn-src-all@FreeBSD.ORG Thu Aug 8 08:37:17 2013 Return-Path: Delivered-To: svn-src-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 2C198C34; Thu, 8 Aug 2013 08:37:17 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from theravensnest.org (theraven.freebsd.your.org [216.14.102.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EB2C52F6E; Thu, 8 Aug 2013 08:37:16 +0000 (UTC) Received: from [192.168.0.2] (cpc27-cmbg15-2-0-cust235.5-4.cable.virginmedia.com [86.27.188.236]) (authenticated bits=0) by theravensnest.org (8.14.5/8.14.5) with ESMTP id r788b6Je058034 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 8 Aug 2013 08:37:08 GMT (envelope-from theraven@FreeBSD.org) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: svn commit: r253802 - head/contrib/llvm/tools/clang/lib/Headers From: David Chisnall In-Reply-To: <20130807205653.GB4918@stack.nl> Date: Thu, 8 Aug 2013 09:37:02 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <46BC9A7E-4AF1-4BE9-9902-3578BDE0CD56@FreeBSD.org> References: <201307301233.r6UCXLT8012177@svn.freebsd.org> <2DE35C45-B110-4D93-BFA7-542A3D1EE902@freebsd.org> <20130807205653.GB4918@stack.nl> To: Jilles Tjoelker X-Mailer: Apple Mail (2.1508) Cc: "svn-src-head@FreeBSD.org" , Matthew Fleming , "svn-src-all@FreeBSD.org" , "src-committers@FreeBSD.org" , Dimitry Andric X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Aug 2013 08:37:17 -0000 On 7 Aug 2013, at 21:56, Jilles Tjoelker wrote: > The code_model stuff is not for x32 support but for PIC/PIE code where > code+data exceed 2GB so relative addressing cannot always be used. The > ABI then prescribes that %r15 be loaded with the GOT pointer when > invoking a large model (code>2GB) PLT entry; otherwise (medium model = or > no PLT entry used), much like i386, any register can be used for the = GOT > pointer. Does our rtld provide support for this? We recently encountered a = problem with the new LLVM JIT because FreeBSD's mmap() does not provide = a way of requesting memory that is below the 2GB line and so we can't = use the small code model. David