PIE support

From: Kostik Belousov <kostikbel_at_gmail.com>
Date: Thu, 8 Oct 2009 17:59:00 +0300
There is a patch, that should provide more or less proper support for
PIE (Position Independent Executables). Besides being desirable feature
itself, this is needed to be able to execute PIE binaries, both native
FreeBSD and Linux images, with sysctl security.bsd.map_at_zero=0.
In particular, Samba port is affected.

gdb does not work for PIE binaries, I believe this is a gdb shortcoming.

Patch was reviewed by Alexander Kabaev, discussed with Bjoern A. Zeeb,
who tested i386 and amd64, and tested by Boris Samorodov for Linux
binaries.

I am asking for general testing for the patch. Also, I would ask the
architecture maintainers to look for the per-arch mapbase address
selected for the PIE binaries.

http://people.freebsd.org/~kib/misc/pie.5.patch

Received on Thu Oct 08 2009 - 12:59:04 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:56 UTC