Browse thread
Compiling a shared library on AMD64
-
Erik Bourget
-
Stefano Zacchiroli
- Erik Bourget
- Xavier Leroy
-
Stefano Zacchiroli
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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 this? 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