On Sunday July 22 2007 02:29:01 am Rob van Dam wrote:
> Robert Connolly schreef:
> > The textrel is probably from libssp_nonshared.a. I can't remember if it's
> > the only problem. Adding -fpic back to the gcc specs might be a good idea
> > to fix this, it looks like I didn't test it well enough.
> >
> > robert
>
> Hi Robert,
>
> Is the command from the embryo toolchain sufficient?:
>
> cp -vi gcc/config/i386/linux.h{,.orig}
> sed 's/^\(#define CC1_SPEC.*\)\("\)$/\1 %{fno-pic|fpic|fPIC:;:-fPIC}\2/' \
>     gcc/config/i386/linux.h.orig > gcc/config/i386/linux.h
>
> I will give it a try anyway.
>
> Rob

I haven't got this far yet, but I remember this problem. I think it's either 
because ssp-local.c isn't getting -fpic or because it's getting -fpie, or 
because a non-pic libiberty.a is being linked into libssp_nonshared.a.

Adding -fPIC to libssp/Makefile.in's CFLAGS, and using --with-pic (for 
libiberty.a) might help.

robert

Attachment: pgpHZVccjik9u.pgp
Description: PGP signature

-- 
http://linuxfromscratch.org/mailman/listinfo/hlfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to