This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: fatal: relocation error: R_SPARC_WDISP30
- From: Sunil <funtoos at yahoo dot com>
- To: Sunil <funtoos at yahoo dot com>, Nick Clifton <nickc at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 1 Jun 2004 10:21:22 -0700 (PDT)
- Subject: Re: fatal: relocation error: R_SPARC_WDISP30
OK, this relocation error in a .so occurs only if I
use "gcc -G -h" on 64-bit solaris. It doesn't if I use
"gcc -shared -h". So, we have a workaround...
I don't know much about binutils/gcc internals
otherwise I could help debug this...if anyone is
interested in solving this, that's your start...
--- Sunil <funtoos@yahoo.com> wrote:
> Nick,
>
> I can't reproduce it on 32-bit(meaning binutils 2.14
> compiled for 32-bit environment, not 64-bit running
> in
> 32-bit mode). I get that error when I run mplayer
> which depends on that samba .so file, so the error
> is
> coming from loader rather than linker.
>
> When I compile samba with gcc and /usr/ccs/bin
> tools,
> mplayer didn't give this error. Similarly, when I
> compiled perl with sun tools, the same problem with
> Glob.so module went away. So, problem is definitely
> with binutils.
>
> I will try to get you a smaller reproducible test
> case.
>
> Thanks Nick!
> Sunil
>
>
> --- Nick Clifton <nickc@redhat.com> wrote:
> > Hi Sunil,
> >
> > > Can somebody at least tell me what's wrong here?
>
> >
> > The linker is complaining that it cannot resolve
> > some of the relocations
> > in the object files it is combining together.
> This
> > means that it is
> > unable to create a working executable and so it
> > issues the error
> > messages. I cannot say exactly why it cannot
> > resolve these relocations,
> > that would require more investigation.
> >
> > >>I am seeing this error with binutils 2.14
> >
> > Binutils 2.15 has recently been released so you
> > might like to try that.
> >
> > >>------------------------------
> > >>ld.so.1: mplayer: fatal: relocation error:
> > >>R_SPARC_WDISP30: file
> /usr/lib/libsmbclient.so.0:
> > >>symbol atexit: value 0x60d2e221 does not fit
> >
> > What linker command line is producing this error
> > message ?
> >
> > >>This is on solaris 9 64-bit mode with gcc 3.3.3.
> >
> > It is possible that this is a bug in the linker
> when
> > running on a 64-bit
> > host. Are you able to reproduce the problem in a
> > small test case ? If
> > so you could post that and we could investigate
> > further. (Does the
> > problem persist if you run the linker under
> Solaris
> > running in 32-bit
> > mode ?)
> >
> > Cheers
> > Nick
> >
> >
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Friends. Fun. Try the all-new Yahoo! Messenger.
> http://messenger.yahoo.com/
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/