libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PIE support


From: Simon Richter
Subject: Re: PIE support
Date: Wed, 30 Nov 2005 19:51:33 +0100
User-agent: Debian Thunderbird 1.0.7 (X11/20051019)

Hi,

Mike Frysinger wrote:

I don't know, but PIE and PIC don't compile to same thing AFAICT. I don't know the significance of that though.

IIRC -pie is only a linker flag that

 a) affects selection of the linker script
 b) disallows certain relocation types
 c) notes the position-independence in the resulting binary

Some platforms have a provision in the specs that allows -pie to be given to the gcc frontend, resulting in -fPIC for compilations and -pie for linking.

PIE and PIC arent the same thing

Only in the linker stage. PIC objects export dynamic symbols and reference their own exported symbols dynamically as well, allowing LD_PRELOAD to override symbols inside a library. PIE objects don't do that.

   Simon

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]