Subject: Re: Unsupported relocation type 6 in non-PLT relocations
To: None <uebayasi@pultek.co.jp>
From: Matt Thomas <matt@3am-software.com>
List: port-powerpc
Date: 03/11/2005 06:59:45
On Mar 11, 2005, at 2:39 AM, uebayasi@pultek.co.jp wrote:
> Hi!
>
> Can anyone here run ( cd /usr/pkgsrc/lang && make ) ? I get the
> following error:
>
>> /usr/pkgsrc/lang/gauche/work/Gauche-0.8.3/src/libgauche.so.0:
>> Unsupported relocation type 6 in non-PLT relocations
>
> This happens while executing the built binary to run the package's
> self tests. This erorr seems to come from ld.elf_so. I'm running
> 2.99.15 evbppc with soft float enabled. First I want to know if this
> is evbppc / soft float specific or not.
Not really. It's mean that a file wasn't compiled -fPIC or -fpic.
If you look in <powerpc/reloc.h>, you'll see 6 is RELOC_16_HA. This
not appropraite for shared libraries, it should have been
RELOC_GOT16_HA.