Re: PIC questions
- From: Kostik Belousov <kostikbel@xxxxxxxxx>
- Date: Tue, 31 Oct 2006 11:03:03 +0200
On Tue, Oct 31, 2006 at 12:26:31PM +0400, Michael Bushkov wrote:
Hi,This is not so theoretical. This is required, for instance, for amd64. Because
I've got 2 questions about PIC.
2. And theoretical question. Does every object that will be linked into the
shared library should be built with PIC enabled?
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 give
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.
Attachment:
pgpE6MHnKYFg4.pgp
Description: PGP signature
- References:
- PIC questions
- From: Michael Bushkov
- PIC questions
- Prev by Date: Re: Email recommendations
- Next by Date: Re: Obtaining used pages on process exit?
- Previous by thread: PIC questions
- Index(es):