This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
Re: gcc/glibc __cmpdi2 function?
- To: "Philip J. Mucci" <mucci at cs dot utk dot edu>
- Subject: Re: gcc/glibc __cmpdi2 function?
- From: Andreas Jaeger <aj at suse dot de>
- Date: 08 May 2000 18:50:11 +0200
- Cc: glibc-linux at ricardo dot ecn dot wfu dot edu
- References: <000d01bfb8bd$66800960$e200a8c0@zoo.at><3916E1D9.56837EA1@cs.utk.edu>
- Reply-To: glibc-linux at ricardo dot ecn dot wfu dot edu
>>>>> Philip J Mucci writes:
> Hi all,
> I'm dl-loading a library into a running application. This library is
> very small, and consists of the following line that gives me trouble.
> void bar(unsigned long long foo)
> {
> double baz = (double)foo;
> }
> When loading this library, I get 1 undefined reference, namely __cmpdi2.
Did you link the library as shared library with gcc -shared (Use GCC!):
gromit:/usr/src/cvs/libc:[0]$ nm /usr/lib/gcc-lib/i486-suse-linux/2.95.2/libgcc.a |grep cmpdi2
_cmpdi2.o:
00000000 T __cmpdi2
U __cmpdi2
U __cmpdi2
U __cmpdi2
_ucmpdi2.o:
00000000 T __ucmpdi2
> I have nm'd about every .o, .so and .a on my system, and I'm starting to
Not every ;-)
> believe that this function is an intrinsic. Can anyone help me out. I'm
> not sure how to proceed. (Which is a rare case over my 10 years of Unix
> hacking...)
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de