|
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 binarySome 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
signature.asc
Description: OpenPGP digital signature
[Prev in Thread] | Current Thread | [Next in Thread] |