R_PPC_REL24 RELOCATION our of range
Stijn Blancke
stijn_blancke at softhome.net
Sun Jan 23 21:24:55 MST 2005
>
> Your system is having difficulties mixing PIC [position indepedent code]
> with non-PIC code. Recompile with "-fPIC" to force the creation of
> position independent code.
>
>
> -Joseph
> =======================================================================
>
> On Sun, 2005-01-23 at 02:08, Stijn Blancke wrote:
> > While trying to run a program that works fine on x86 architecture I get
> > the following error.
> >
> > error while loading shared libraries: /home/fang/rc/lib/libWindows.so:
> > R_PPC_REL24 relocation at 0x0f04f0d8 for symbol `fwrite' out of range
> >
> >
> > When I try
> >
> > #readelf -a /home/fang/rc/lib/libWindows.so | grepfwrite
> >
> > I get :
> >
> > 000020d8 0000a70a R_PPC_REL24 00000000 fwrite + 0
> > 00002114 0000a70a R_PPC_REL24 00000000 fwrite + 0
> > 00002238 0000a70a R_PPC_REL24 00000000 fwrite + 0
> > 00002274 0000a70a R_PPC_REL24 00000000 fwrite + 0
> > 167: 00000000 408 FUNC GLOBAL DEFAULT UND fwrite at GLIBC_2.0 (2)
> > 198: 00000000 408 FUNC GLOBAL DEFAULT UND fwrite@@GLIBC_2.0
> >
> > Is there anybody with the same problem or has a solution how to fix
> > this.
> --
> joseph_sacco[at]comcast[dot]net
How do I do this ??
I tried to recompile my code with make -fPIC but that didn t really
work.
I get :
make: PIC: No such file or directory
make: *** No rule to make target `PIC'. Stop.
Or do I have to recompile smth else...
--
Stijn Blancke <stijn_blancke at softhome.net>
More information about the yellowdog-general
mailing list