Bugs using -fPIC on linux (i86 RedHat 5.0)?
Richard Henderson
rth@cygnus.com
Mon Dec 29 09:24:00 GMT 1997
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~
More information about the Gcc
mailing list