[PATCH] Incorrect error message for unresolved symbols (ppc)

Ed Swierk eswierk at arastra.com
Tue Aug 1 17:35:16 UTC 2006


On PowerPC, an unresolved symbol during shared library load is
incorrectly reported as a bad reloc type.

For example, during a failed attempt to load the readline Python module I get:

python: symbol 'PC': can't handle reloc type 'R_PPC_ADDR32' in lib
'/lib/libreadline.so.5'
python: symbol 'tgetnum': can't handle reloc type 'R_PPC_JMP_SLOT' in
lib '/lib/libreadline.so.5'

instead of the more accurate:

python: symbol 'PC': can't resolve symbol in lib '/lib/libreadline.so.5'.
python: symbol 'tgetnum': can't resolve symbol in lib '/lib/libreadline.so.5'.

The attached patch makes the PowerPC elfinterp.c behave like the i386 version.

(If anyone can help me get the Python readline module linked properly,
I'm all ears :-)

--Ed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 001-powerpc-elfinterp.patch
Type: text/x-patch
Size: 409 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20060801/bd056b63/attachment-0002.bin 


More information about the uClibc mailing list