can't handle reloc type 0x15 in lib

Joakim Tjernlund joakim.tjernlund at transmode.se
Mon Jan 16 21:14:33 UTC 2006


 

> -----Original Message-----
> From: uclibc-bounces at uclibc.org 
> [mailto:uclibc-bounces at uclibc.org] On Behalf Of Brent Cook
> Sent: den 16 januari 2006 21:43
> To: uclibc at uclibc.org
> Subject: Re: can't handle reloc type 0x15 in lib
> 
> On Monday 16 January 2006 13:58, Brent Cook wrote:
> > Dear all,
> >
> >   I am using Python/SWIG as an interface to some C-based libraries.
> > Whenever I try to load one of these libraries from within a 
> PPC/uClibc 
> > environment, I get an error from the library loader:
> >
> > # python -v
> > ...
> > Python 2.4.2 (#1, Jan 13 2006, 14:12:04) [GCC 4.0.2] on linux2 Type 
> > "help", "copyright", "credits" or "license" for more information.
> >
> > >>> from userstack import userstack
> >
> > 
> dlopen("/usr/lib/python2.4/site-packages/userstack/_userstack.so", 2);
> >
> > python: symbol 'rand_open': can't handle reloc type 0x15 in lib 
> > '/usr/lib/libuserstack.so.1'
> > Segmentation fault
> >
> 
> FYI, this on PPC with GCC 4.0.2. The relocation type is 
> 'R_PPC_GOT16_LO', which is not  handled in 
> ldso/powerpc/elfinterp.c's _dl_do_reloc function.
> 
> How do I compile my code to not use this relocation type, or 
> if not possible, how do I implement handling for this?

Try adding -fpic to gcc.

 Jocke




More information about the uClibc mailing list