PIE/PIC support on base

Konstantin Belousov kostikbel at gmail.com
Wed Nov 5 13:19:44 UTC 2014


On Wed, Nov 05, 2014 at 07:59:21AM -0500, Shawn Webb wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
> 
> 
> 
> On November 5, 2014 7:26:12 AM EST, Konstantin Belousov <kostikbel at gmail.com> wrote:
> >On Wed, Nov 05, 2014 at 12:48:55PM +0100, Baptiste Daroussin wrote:
> >> > Also, I strongly oppose compiling everything with PIC, even on
> >amd64.
> >> > I described somewhere else that using PIC code changes symbol
> >lookup
> >> > rules for binaries.  So despite not having performance impact, the
> >> > thing does impact runtime behaviour in subtle ways.  The most
> >affected
> >> > programs are those which support dynamic modules.
> >Please do not ignore this ^^^^^^ issue.
> >
> 
> Can you go into detail what those changes are?
PIE binary resolves its symbols through GOT/PLT.
In particular, it is possible to interpose the symbols.


More information about the freebsd-arch mailing list