PowerPC snapshot compilation failures
Glauber de Oliveira Costa
glommer at br.ibm.com
Mon Sep 26 13:49:38 UTC 2005
On Mon, Sep 26, 2005 at 10:59:42AM +0200, Peter S. Mazinger wrote:
> On Sun, 25 Sep 2005, Glauber de Oliveira Costa wrote:
>
> > > > > > > > ld -shared --warn-common --warn-once -z combreloc -z defs -s
> > > > > > > > -soname=libdl.so.0 \ -o libdl-0.9.28.so -fini dl_cleanup
> > > > > > > > --whole-archive libdl_pic.a \ --no-whole-archive
> > > > > > > > ../..//libc/misc/internals/interp.o \ -L../..//lib -lc
> > > > > > > > ../../lib/ld-uClibc.so.0
> > > > > > > > /usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/libgcc.a;
> > > > > > > > ld: Error: The symbol `__syscall_error' has a R_PPC_REL24
> > > > > > > > relocation, that means '../..//lib/libc.a(brk.o)' was
> > > > compiled without -fPIC.
> > >
>
> Please remove brk.o and rebuild it to see that it really uses -fpic
> to compile. Try ld -shared test.so brk.o, that should show you if you
> really have a text reloc in brk.o (readelf -d test.so)
>
Did it, and yes, it is using -fpic. Everything seems okay @ compile
time, as I just told Jocke.
> You haven't mentioned binutils' version...
Sorry, forgot it
linux:~/uClibc/libc/sysdeps/linux/powerpc # as -v
GNU assembler version 2.15.90.0.1.1 (powerpc-suse-linux) using BFD
version 2.15.90.0.1.1 20040303 (SuSE Linux)
> Peter
>
> --
> Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2
> Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2
>
--
=====================================
Glauber de Oliveira Costa
IBM Linux Technology Center - Brazil
glommer at br.ibm.com
=====================================
More information about the uClibc
mailing list