This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Half-solved ? Re: Sparc code question, -fpic or -fPIC
Marc Espie <Marc.Espie@liafa.jussieu.fr> writes:
>
>And, BTW, if sparc assemblers have required -K PIC since the beginning of
>time, I must back *before* the beginning of time. :)
They always have as far as I recall. However SunOS and Solaris will
quite happily build .so from non-PIC objects - they just don't
"share" very well as the relocations cause copy-on-write and hence
private pages.
Thus if -K PIC is left out it will still "work".
Hence the -z text assertion to check for this stuff was "optional".
--
Nick Ing-Simmons <nik@tiuk.ti.com>
Via, but not speaking for: Texas Instruments Ltd.