Article View: gnu.gcc.help
Article #53366GCC and position-indepentent code
From: Paul Graham
Date: Thu, 13 Feb 1992 17:35
Date: Thu, 13 Feb 1992 17:35
12 lines
1003 bytes
1003 bytes
I am building a shared library on Sun* OS4.*. According to the Sun manual, the input object files must be position-independent, that is, all references to local data must be pc-relative (so I understand). Sun cc provides the '-pic' switch to produce position-independent output. This can be verified at link time with the '-assert pure-text' switch. Object files created by gcc do not satisfy the 'pure-text' assertion. Does gcc provide some equivalent of the '-pic' switch? Thanks Paul Graham paulg@clsi.com
Technical Details
Message-ID:
<PAULG.92Feb13173506@gemma.clsi.COM>Path:
arc1-ca.pugleaf.net!sparky!uunet!clsi!paulgShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,76e12738263fba3d,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-02-13 18:05:55 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!clsi!paulg From: paulg@clsi.COM (Paul Graham) Subject: GCC and position-indepentent code Message-ID: <PAULG.92Feb13173506@gemma.clsi.COM> Sender: usenet@clsi.COM Organization: CAD Language Systems Inc. Distribution: gnu Date: 13 Feb 92 17:35:06