Date: Thu, 8 Oct 2009 17:59:00 +0300 From: Kostik Belousov <kostikbel@gmail.com> To: current@freebsd.org, arch@freebsd.org Subject: PIE support Message-ID: <20091008145900.GK2259@deviant.kiev.zoral.com.ua>
next in thread | raw e-mail | index | archive | help
--p+SyGXcYc+aq/C8k Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --p+SyGXcYc+aq/C8k Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkrN/jMACgkQC3+MBN1Mb4iDzQCfUrr/kLoY+6HsM7SN5prNXhdr xMQAn0L1RMTx254+EcL0gMVhpq1nDptV =6md9 -----END PGP SIGNATURE----- --p+SyGXcYc+aq/C8k--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091008145900.GK2259>