From owner-freebsd-current@FreeBSD.ORG Thu Oct 8 14:59:04 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD9AC1065670; Thu, 8 Oct 2009 14:59:04 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id 26DE68FC0A; Thu, 8 Oct 2009 14:59:03 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id n98Ex0Ir069921 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 8 Oct 2009 17:59:00 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id n98Ex0Sv059499; Thu, 8 Oct 2009 17:59:00 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id n98Ex0nQ059498; Thu, 8 Oct 2009 17:59:00 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 8 Oct 2009 17:59:00 +0300 From: Kostik Belousov To: current@freebsd.org, arch@freebsd.org Message-ID: <20091008145900.GK2259@deviant.kiev.zoral.com.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="p+SyGXcYc+aq/C8k" Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: Subject: PIE support X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Oct 2009 14:59:04 -0000 --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--