Version française
Home     About     Download     Resources     Contact us    
Browse thread
PIC
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Sven Luther <sven.luther@w...>
Subject: Re: [Caml-list] PIC
On Tue, Dec 27, 2005 at 11:03:24AM +0100, Xavier Leroy wrote:
> The reason it works particularly well for x86 is that dynamic loaders
> for x86 (both under Unix/Linux and Windows) can relocate arbitrary
> code, not necessarily PIC code.  This is unfortunately not the case
> for all target architectures.  In particular, dynamic loaders for
> x86_64 (AMD64) are much less forgiving.  The -fPIC option to ocamlopt
> you mention was added to the AMD64 code generator in an attempt to
> generate "more position-independent" code.  However, it does not quite
> work yet.  A difficulty is the paucity of documentation on what,
> exactly, the Linux AMD64 dynamic loader can relocate.

What is the situation for other architectures, in particular, i would be
interested in the powerpc case.

Friendly,

Sven Luther