R_PPC_REL24 RELOCATION our of range

Joseph E. Sacco, Ph.D. joseph_sacco at comcast.net
Mon Jan 24 05:57:03 MST 2005


You have to rebuilt the the application from its source code.


On Sun, 2005-01-23 at 23:24, Stijn Blancke wrote:
> > 
> > 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...
-- 
joseph_sacco[at]comcast[dot]net



More information about the yellowdog-general mailing list