tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
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
(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 *
Home |
Main Index |
Thread Index |
Old Index