yellowdog-general Digest, Vol 5, Issue 65

Joseph E. Sacco, Ph.D. joseph_sacco at comcast.net
Tue Jan 25 06:34:40 MST 2005


Stijn,

Looks like libTraverse.so also needs to be rebuilt  with "-fPIC" added
to the CFLAGS list for GCC. 

As a simple rule, shared libraries should be built only from position
independent code.


-Joseph
===========================================================



On Mon, 2005-01-24 at 20:55, Stijn Blancke wrote:
> Hey Joseph,
> 
> I have rebuild my whole application by doing first a make clean and the
> recompile it. The wonderful news is that the error is gone :-)
> but an other one came into its place.
> It is the same error but on a different symbol.
> 
> ../../../bin/image_test: error while loading shared libraries:
> /home/fang/rc/libsim/libTraverse.so: R_PPC_REL24 relocation at
> 0x0f7fafb8 for symbol `strlen' out of range
> 
> When I try readelf on it I get :
> 
> 00004fb8  0000a70a R_PPC_REL24       00000000   strlen + 0
>    167: 00000000   184 FUNC    GLOBAL DEFAULT  UND strlen at GLIBC_2.0 (2)
>    199: 00000000   184 FUNC    GLOBAL DEFAULT  UND strlen@@GLIBC_2.0
> 
> 
> 
> 
> 
> > You have to rebuilt the the application from its source code.
> > 
> > 
-- 
joseph_sacco[at]comcast[dot]net



More information about the yellowdog-general mailing list