svn commit: r253802 - head/contrib/llvm/tools/clang/lib/Headers
David Chisnall
theraven at FreeBSD.org
Thu Aug 8 08:37:17 UTC 2013
On 7 Aug 2013, at 21:56, Jilles Tjoelker <jilles at stack.nl> 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
More information about the svn-src-head
mailing list