PIE support

Kostik Belousov kostikbel at gmail.com
Thu Oct 8 14:59:04 UTC 2009


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20091008/78ba254b/attachment.pgp


More information about the freebsd-arch mailing list