From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-user+bounces-181952-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CC404138330 for <garchives@archives.gentoo.org>; Tue, 9 Jan 2018 20:31:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A4BBAE09B6; Tue, 9 Jan 2018 20:31:04 +0000 (UTC) Received: from blaine.gmane.org (unknown [195.159.176.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3CDC1E0956 for <gentoo-user@lists.gentoo.org>; Tue, 9 Jan 2018 20:31:04 +0000 (UTC) Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from <lnx-gentoo-user@m.gmane.org>) id 1eZ0Vv-0006B1-Sa for gentoo-user@lists.gentoo.org; Tue, 09 Jan 2018 21:28:51 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Martin Vaeth <martin@mvath.de> Subject: [gentoo-user] Re: Profile 17.0, PIE, USE="pic", C(XX)FLAGS "-fpic", "-fPIC"? Date: Tue, 9 Jan 2018 20:28:39 +0000 (UTC) Message-ID: <p338ln$179$1@blaine.gmane.org> References: <20180109053448.GB13745@waltdnes.org> X-Complaints-To: usenet@blaine.gmane.org User-Agent: slrn/1.0.2 (Linux) Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Archives-Salt: 60fe1a4c-cba7-4e39-b8fd-e0037723c4a5 X-Archives-Hash: 44a8e623cb5590fbae2fe041e567f5dc Walter Dnes <waltdnes@waltdnes.org> wrote: > Question: does PIE imply pic/PIC? The code is somewhat different, but in principle yes. > I.e does a PIE build also require USE="pic" Assembler code which breaks pic will also break pie, so better do not use that code. > and CFLAGS/CXXFLAGS="-fpic -fPIC"? These are usually added for libraries anyway. They do not belong into your "manual" configuration file. > If so, is there a way to disable PIE in profile 17.0? If you want to switch it off for a particular binary, there are -fno-PIE -no-pie. Ebuilds should add it automatically if needed. So far, I only needed it for clisp: https://bugs.gentoo.org/show_bug.cgi?id=618170