This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bugs using -fPIC on linux (i86 RedHat 5.0)?
- To: Marius Kjeldahl <marius at funcom dot com>
- Subject: Re: Bugs using -fPIC on linux (i86 RedHat 5.0)?
- From: Richard Henderson <rth at cygnus dot com>
- Date: Mon, 29 Dec 1997 09:14:04 -0800
- Cc: egcs at cygnus dot com
- References: <52k9co1b72.fsf@ace.funcom.com>
- Reply-To: Richard Henderson <rth at cygnus dot com>
On Mon, Dec 29, 1997 at 03:22:09PM +0100, Marius Kjeldahl wrote:
> (I do not know _why_ it runs without -fPIC - maybe it simply
> does not gain me the real benefit of a shared library, meaning several
> applications will load the library into their own private memory space
> - just guessing here).
A pretty good guess -- the pages start out shared and then get dirtied
by the relocations that are applied, which makes them not shared. The
fact that it does work has its uses though.
> In looking at the temporary assembler file, the lines it objects to is:
>
> call @PLT
This is a compiler bug, as the target symbol for the call is missing.
Can you give us the preprocessed file that generates this problem?
r~