PowerPC snapshot compilation failures

Peter S. Mazinger ps.m at gmx.net
Mon Sep 26 08:59:42 UTC 2005


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)

You haven't mentioned binutils' version...

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




More information about the uClibc mailing list