From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from burlywood.elm.relay.mailchannels.net (burlywood.elm.relay.mailchannels.net [23.83.212.26]) by sourceware.org (Postfix) with ESMTPS id 1F15A3857C66; Thu, 18 Nov 2021 16:49:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1F15A3857C66 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gotplt.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gotplt.org X-Sender-Id: dreamhost|x-authsender|siddhesh@gotplt.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id D314A362444; Thu, 18 Nov 2021 16:49:23 +0000 (UTC) Received: from pdx1-sub0-mail-a306.dreamhost.com (100-96-39-10.trex.outbound.svc.cluster.local [100.96.39.10]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 29B0736244C; Thu, 18 Nov 2021 16:49:23 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|siddhesh@gotplt.org Received: from pdx1-sub0-mail-a306.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.96.39.10 (trex/6.4.3); Thu, 18 Nov 2021 16:49:23 +0000 X-MC-Relay: Junk X-MailChannels-SenderId: dreamhost|x-authsender|siddhesh@gotplt.org X-MailChannels-Auth-Id: dreamhost X-Shoe-Reign: 63f9fb2c01f42ea0_1637254163510_2250958851 X-MC-Loop-Signature: 1637254163510:4068983276 X-MC-Ingress-Time: 1637254163509 Received: from [192.168.1.174] (unknown [1.186.223.33]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: siddhesh@gotplt.org) by pdx1-sub0-mail-a306.dreamhost.com (Postfix) with ESMTPSA id 4Hw5Nv3wkTz11; Thu, 18 Nov 2021 08:49:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gotplt.org; s=gotplt.org; t=1637254162; bh=ed0M6qt7m6r5rqrW8RXAvB48fwE=; h=Date:Subject:To:Cc:From:Content-Type:Content-Transfer-Encoding; b=EEfMwLkhv6Xpkc2Y6HpDzuEDqDxk5jHc/upvizcbzPro9ZSijpUMmlDON8soMtDIh 9rNSlZs36aE6klVa5/ldQYTjTvXRs+gS81KKSDT095aybRFVA+D16vLLZ8CUoT2Uf6 z9wVsuIDmEl3xQv2rNSRGD6cG1/r/sfe4xZ1zurQ= Message-ID: Date: Thu, 18 Nov 2021 22:19:13 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Subject: Re: [PATCH] New option --enable-pie-programs Content-Language: en-US To: "H.J. Lu" Cc: Adhemerval Zanella , Florian Weimer , Siddhesh Poyarekar , GNU C Library References: <20211116135240.3092651-1-siddhesh@sourceware.org> <87czn0cicn.fsf@oldenburg.str.redhat.com> <875ysr9nwo.fsf@oldenburg.str.redhat.com> <87wnl787vg.fsf@oldenburg.str.redhat.com> <4e9ac2de-aa3d-d9bf-c838-74e8fb59ead5@sourceware.org> <07d2bb89-93c7-54b0-dec6-7fdbd4e4998e@gotplt.org> <549f87ce-d3c1-c4ff-8aae-bc899668c730@gotplt.org> From: Siddhesh Poyarekar In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3029.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Nov 2021 16:49:34 -0000 On 11/18/21 22:14, H.J. Lu wrote: > --enable-pie means --disable-pie which looks odd since PIE isn't really > disabled, just isn't the default. But I don't feel it very strongly. As for Ahh then the option you suggested is actually different, in that --enable-default-pie=no doesn't actually disable PIE for default-PIE toolchains. That is, it is similar to the --enable-pie-programs option I implemented with the added functionality of transparently enabling static-pie. Have I understood that correctly? Siddhesh