[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netbsd-tech-toolchain
Subject:    re: gcc configury or mknative bug?
From:       matthew green <mrg () eterna ! com ! au>
Date:       2012-08-11 20:47:39
Message-ID: 26115.1344718059 () splode ! eterna ! com ! au
[Download RAW message or body]


> 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.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic