Re: PIC questions
Content-Type: text/plain; charset=us-ascii
On Tue, Oct 31, 2006 at 12:26:31PM +0400, Michael Bushkov wrote:[color=blue]
> I've got 2 questions about PIC.
> 2. And theoretical question. Does every object that will be linked into t=[/color]
> shared library should be built with PIC enabled?[/color]
This is not so theoretical. This is required, for instance, for amd64. Beca=
compiler by default generates so called small code model where text and data
of object shall live in lower 2 Gb of address space. Solaris linker will gi=
warnings when relocations are to big to fit into signed 32-bit location. Our
linker will silently ignore overflow. This will result in either core dump
(if you lucky), or data corruption.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)
-----END PGP SIGNATURE-----