tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: gcc configury or mknative bug?
On Saturday 11 August 2012 17:06:20 Nick Hudson wrote:
> On Saturday 11 August 2012 13:46:41 Martin Husemann wrote:
> > If I understand the gcc folks correctly(1), a stock gcc configured and
> > compiled on NetBSD should have -fPIC in the CRTSTUFF_T_CFLAGS variable
> > for all archs, wich means libgcc's crstuff gets compiled with -fPIC.
> >
> > This is needed for -pie to work.
> >
> > However, our reach-over equivalent G_CRTSTUFF_T_CFLAGS does not have it
> > for any arch(2). I guess -pie only works on i386/amd64 since by default
> > they don't use gcc's crtstuff nowadays.
> >
> > I initially tried to fix it for sparc* only, but mknative fails for me
> > and it looks like a much broader fix should be done instead.
> >
> > Does anyone see why we don't pick this up during mknative?
> > Please fix and request pullup to -6 ASAP ;-)
>
> CRTSTUFF_T_CFLAGS_S is needed. I committed a change to the mknative goop to
> grap it. Someone needs to crank the mknative handle.
>
> > Martin
> >
> > (1) = http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54226
> > (2) = cd /usr/src/external/gpl3/gcc/lib/crtstuff/arch && fgrep
> > G_CRTSTUFF_T_CFLAGS *
>
> Nick
hmm,
http://nxr.netbsd.org/xref/src/external/gpl3/gcc/lib/crtstuff/Makefile#41
Nick
Home |
Main Index |
Thread Index |
Old Index