This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: DSO reference error with binutils 2.14


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.
> > 
> >


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]