This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: DSO reference error with binutils 2.14
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Vijayaraghavan Ragunathan <Vijayaraghavan dot Ragunathan at oracle dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 14 May 2004 08:29:47 -0700
- Subject: Re: DSO reference error with binutils 2.14
- References: <40A4C6A6.9070109@oracle.com> <20040514145502.GA27386@lucon.org> <40A4E48D.9040900@oracle.com>
You can't use ld --shared to create shared library. You should use
"gcc --shared" instead. In your case, your DSO needs -lgcc when it
is built.
H.J.
On Fri, May 14, 2004 at 08:53:57PM +0530, Vijayaraghavan Ragunathan wrote:
> Hi,
>
> Thanks for the reply.
> This is an error that I received when linking oracle software on RHAS
> 3.0 . But I can reproduce the problem with a simple c program wherein I
> use ld to generate a shared library. I notice that a similar problem was
> reported earlier and HJ had given sone code fix. But I want a fix which
> will go into ld or its libraries so that I can build oracle executables.
>
> Thanks
> Vijay
>
> H. J. Lu wrote:
>
> >On Fri, May 14, 2004 at 06:46:22PM +0530, Vijayaraghavan R wrote:
> >
> >
> >>Hi,
> >>
> >>While trying to build some shared library and executable , I get the
> >>following error with ld:
> >> hidden symbol `__fixunssfdi' in
> >>/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/libgcc.a(_fixunssfdi.oS) is
> >>referenced by DSO
> >> collect2: ld returned 1 exit status
> >>
> >>
> >>
> >
> >A testcase?
> >
> >
> >H.J.
> >
> >