From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 26348 invoked from network); 7 Mar 1999 08:10:17 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 7 Mar 1999 08:10:17 -0000 Received: from piglet.twiddle.net (rth@piglet.twiddle.net [207.104.6.26]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id DAA00812 for ; Sun, 7 Mar 1999 03:04:56 -0500 Received: (from rth@localhost) by piglet.twiddle.net (8.8.7/8.8.7) id AAA06875 for axp-list@redhat.com; Sun, 7 Mar 1999 00:04:56 -0800 Message-ID: <19990307000456.A6853@twiddle.net> Date: Sun, 7 Mar 1999 00:04:56 -0800 From: Richard Henderson To: axp-list@redhat.com Subject: Re: libcmpl vs libffm !!!! References: <19990306012353.A29909@twiddle.net> <199903070700.AAA23959@ellpspace.math.ualberta.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2 In-Reply-To: <199903070700.AAA23959@ellpspace.math.ualberta.ca>; from Michal Jaegermann on Sun, Mar 07, 1999 at 12:00:42AM -0700 On Sun, Mar 07, 1999 at 12:00:42AM -0700, Michal Jaegermann wrote: > There is a small fly in this ointment. A conversion is indeed performed > but when I tried to link something with such shared library I got: > > /usr/local/lib/libcpml.so: undefined reference to `_OtsMulX' [...] Yea, I noticed those later. They are apparently 128-bit fp implentation functions. I don't know what their interface is. > /usr/local/lib/libcpml.so: undefined reference to `_OtsDivide32Unsigned' > /usr/local/lib/libcpml.so: undefined reference to `_OtsDivide64Unsigned' > /usr/local/lib/libcpml.so: undefined reference to `_OtsDivide64' > /usr/local/lib/libcpml.so: undefined reference to `_OtsDivide32' These I can't imagine what they do. Presumably they are support functions for the others but... > (Later - indeed "the famous". I missed a presence of _fpdata > which you cannot delete that way and which is still 'U' in a working > program linked with libcpml.a. Can somebody explain what is really > going on here? It does not seem to be resolved by other libraries > but maybe I miss something.) It's undefined, but no relocations reference it. I can assume only that it does something magic with the DU libc. It should be safe to assemble .global _fpdata _fpdata = 0 and link it in to the shared object simply to resolve the reference. r~