This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: "sco5.h" `%{!z*:-z text}'
- To: "Golubev I. N." <gin at mo dot msk dot ru>
- Subject: Re: "sco5.h" `%{!z*:-z text}'
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 31 Aug 2001 14:53:09 -0300
- Cc: gcc at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <02523b8a87ad67-gin@mo.msk.ru>
On Aug 27, 2001, "Golubev I. N." <gin@mo.msk.ru> wrote:
> `%{!z*:-z text}' construct in LINK_SPEC forces gcc always to specify
> `-z text' while linking shared libraries. With some input files (even
> from native libs) it will cause linker to fail.
> In fact sco5 can link any (non PIC, not adapted to shlibs in any way)
> objects to shlibs, and those shlibs will work normally. Sometimes
> using such an objects is what is desired, since non PIC version of
> object is the only available one.
> Why forcing such an option was included at all?
Shared libraries are more efficient when they're built out of PIC.
Presumably, there's some -z option that tells the linker to not
require PIC, and GCC won't pass -z text to the linker if you use any
other -z option.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me