From owner-freebsd-ia64@FreeBSD.ORG Thu Dec 27 21:53:16 2012 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A7B082E8 for ; Thu, 27 Dec 2012 21:53:16 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirj.bris.ac.uk (dirj.bris.ac.uk [137.222.10.78]) by mx1.freebsd.org (Postfix) with ESMTP id 60F1F8FC0A for ; Thu, 27 Dec 2012 21:53:16 +0000 (UTC) Received: from irix.bris.ac.uk ([137.222.10.39] helo=ncs.bris.ac.uk) by dirj.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1ToL8D-00008V-R2; Thu, 27 Dec 2012 21:36:54 +0000 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncs.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1ToL8D-0007ir-G3; Thu, 27 Dec 2012 21:36:49 +0000 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5) with ESMTP id qBRLanTI000607; Thu, 27 Dec 2012 21:36:49 GMT (envelope-from mexas@mech-cluster241.men.bris.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5/Submit) id qBRLaneE000606; Thu, 27 Dec 2012 21:36:49 GMT (envelope-from mexas) Date: Thu, 27 Dec 2012 21:36:49 GMT From: Anton Shterenlikht Message-Id: <201212272136.qBRLaneE000606@mech-cluster241.men.bris.ac.uk> To: xcllnt@mac.com Subject: PIE not working properly on ia64? In-Reply-To: <201212272126.qBRLQ1NX028551@core.courtesan.com> X-Spam-Score: -1.4 X-Spam-Level: - Cc: freebsd-ia64@freebsd.org X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: mexas@bristol.ac.uk List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Dec 2012 21:53:16 -0000 Hi Marcel Do you know what this is about? Thanks Anton From Todd.Miller@courtesan.com Thu Dec 27 21:26:51 2012 > --disable-pie does help, e.g.: > > # ./plugins/sudoers/testsudoers > usage: testsudoers [-dt] [-G sudoers_gid] [-g group] [-h host] [-p grfile] [- > p p > wfile] [-U sudoers_uid] [-u user] [args] > # > > This is built with the default system compiler: > > gcc (GCC) 4.2.1 20070831 patched [FreeBSD] It sounds like while gcc supports the -fPIE and -pie options they don't actually work properly. The simple solution is to add --disable-pie to the configure args for ia64 in the port's Makefile. I'll also add a configure check to disable PIE on FreeBSD/ia64 in the next sudo release. However, you might want to involve the FreeBSD/ia64 folks and see if they can fix the underlying issues that prevent PIE from working properly. - todd