From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 112FABB81 for ; Wed, 14 Dec 2005 00:49:59 +0100 (CET) Received: from mrout2.yahoo.com (mrout2.yahoo.com [216.145.54.172]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id jBDNnv6a031466 for ; Wed, 14 Dec 2005 00:49:58 +0100 Received: from localhost.localdomain (raptors.corp.yahoo.com [207.126.231.163]) by mrout2.yahoo.com (8.13.4/8.13.4/y.out) with ESMTP id jBDNlUYs064972; Tue, 13 Dec 2005 15:47:31 -0800 (PST) DomainKey-Signature: a=rsa-sha1; s=serpent; d=yahoo-inc.com; c=nofws; q=dns; h=received:from:to:cc:subject:references: x-eric-conspiracy:date:in-reply-to:message-id:user-agent:mime-version:content-type; b=hpZgSS3ZtJMf/3BUER5WioIcjeu2Cw9td7NCaWwAszhdbNOGXTGdmZelYzBQ3iqD Received: from raptors.corp.yahoo.com..ebourget.net (localhost.localdomain [127.0.0.1]) by localhost.localdomain (Postfix) with ESMTP id 2B07B20EF82; Tue, 13 Dec 2005 15:45:53 -0800 (PST) From: Erik Bourget To: Stefano Zacchiroli Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Compiling a shared library on AMD64 References: <87oe3kodh8.fsf@raptors.corp.yahoo.com.> <20051213223433.GB16914@aquarium.takhisis.invalid> X-Eric-Conspiracy: There Is No Conspiracy Date: Tue, 13 Dec 2005 15:45:52 -0800 In-Reply-To: <20051213223433.GB16914@aquarium.takhisis.invalid> (Stefano Zacchiroli's message of "Tue, 13 Dec 2005 23:34:33 +0100") Message-ID: <87wti8wogf.fsf@raptors.corp.yahoo.com.> User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Miltered: at concorde with ID 439F5E26.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 zacchiroli:01 ocaml:01 ocaml:01 3.09.0:01 bytecode:01 ocamlopt:01 -fpic:01 pcre:01 pcre:01 rodata:01 rodata:01 wrote:01 zack:01 writes:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.3 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: > > 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