tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: gcc configury or mknative bug?



> 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 ;-)

martin and i discussed this and we've come to the conclusion that
the problem isn't that crt is compiled incorrectly but that the
wrong crt is used with -pie.  we're testing a fix to the netbsd
gcc specs itself that should handle this.


.mrg.


Home | Main Index | Thread Index | Old Index