"symbol '': can't resolve symbol"

Joakim Tjernlund Joakim.Tjernlund at transmode.se
Sun Jul 27 19:15:05 UTC 2008


> -----Original Message-----
> From: Stéphan Kochen [mailto:stephan at kochen.nl]
> Sent: den 27 juli 2008 20:42
> To: Joakim Tjernlund
> Cc: uclibc at uclibc.org
> Subject: Re: "symbol '': can't resolve symbol"
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Joakim Tjernlund schreef:
> > Nintendo Wii, cool. What are you trying to do?
> 
> Thanks for the quick reply.
> 
> Right now, Linux on the Wii, and pretty much any unofficial software, is
> in the early stages. I'm working towards networking using a Bluetooth
> PAN, since that's the only way to get networking in Linux without
> additional accessories. (At least, until someone figures out how to talk
> to the wifi hardware.)

OK.

> 
> > Thanks for so detailed report. It seems like you have build dbus-daemon
> > in a strange way. It is built similar to a shared lib and has both
> > TEXTREL and these "funny" relocs in it(use readelf -a to see):
> > 0000529e  00000106 R_PPC_ADDR16_HA   00000114   .interp + 55248
> > 000052a2  00000104 R_PPC_ADDR16_LO   00000114   .interp + 55248
> > 000052c2  00000106 R_PPC_ADDR16_HA   00000114   .interp + 5270
> > 000052c6  00000104 R_PPC_ADDR16_LO   00000114   .interp + 5270
> > 000052ca  00000106 R_PPC_ADDR16_HA   00000114   .interp + 35f68
> > 000052ce  00000104 R_PPC_ADDR16_LO   00000114   .interp + 35f68
> > 000052d2  00000106 R_PPC_ADDR16_HA   00000114   .interp + 15820
> > 000052d6  00000104 R_PPC_ADDR16_LO   00000114   .interp + 15820
> > 000052d8  0000500a R_PPC_REL24       00000000   __uClibc_main + 0
> 
> I see them, but have no idea why it's wrong. :)
> 
> > There may be a bug in powerpc reloc code for ADDR_16_XX but you won't
> > get past ther REL24 reloc, you will get an unsupported error. See
> > ldso/powerpc/elfinterp.c, _dl_do_reloc()
> 
> So I should be using -pic? Is -pie sufficient? (Which is what is
> happening now.)

If you use -pie, you should also use -fPIC (gcc option). But why
use -pie? Just drop it if you don't have special reasons.

      Jocke






More information about the uClibc mailing list