Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: -- (:)
From: Erik Bourget <ebourget@y...>
Subject: Re: [Caml-list] Compiling a shared library on AMD64

Stefano Zacchiroli <> 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:

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
$ 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