Re: DLLs ... [OFFTOPIC]

Christian Groessler (cpg@aladdin.de)
Fri, 17 Jul 1998 13:53:26 +0100


>>Yes, -fPIc tells the compiler to generate Position Independant Code, that
is >code that can be dynamically linked with an application. Without
>that switch, >your library may work, but there's no guaranty.
>>
>>> Do lib*.so files have no reloc tables ?
>>
>>The compiler and linker will create all necessary tables in the library
file.
>
>So if it is fully relocable (?) , why does it need to be PIC ?

It's relocatable, yes, but if it has to be relocated it's not shared
anymore :-)
The idea is that the code pages of the .so are shared btw. processes. If
the
lib has to be relocated for one process, it cannot be shared with other
processes,
so you need more memory to hold the lib.

regards,
chris

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html