English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Compiling a shared library on AMD64
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-12-13 (23:49)
From: Erik Bourget <ebourget@y...>
Subject: Re: [Caml-list] Compiling a shared library on AMD64

Stefano Zacchiroli <zack@bononia.it> writes:

> On Tue, Dec 13, 2005 at 02:10:11PM -0800, Erik Bourget wrote:
>> I'm having trouble building a shared library using components from the ocaml
>> standard library on my x86_64 box.  I built ocaml 3.09.0 with:
> Have a look at this entry in the ocaml BTS:
>   http://caml.inria.fr/mantis/view.php?id=3866

Is dynamic bytecode loading/interpeting going to be the only way I can do

I think the specific remedy I'm looking for is a way to get rid of this:

$ ocamlopt -ccopt '-fPIC' -fPIC -c pcre.ml
$ objdump -r pcre.o | grep 64_32
0000000000000087 R_X86_64_32S      .rodata
0000000000000955 R_X86_64_32S      .rodata+0x0000000000000020
0000000000002ac0 R_X86_64_32S      .rodata+0x00000000000000e8
0000000000002e93 R_X86_64_32S      .rodata+0x0000000000000168

- Erik