From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by sourceware.org (Postfix) with ESMTPS id 710FE3858D1E for ; Fri, 28 Jan 2022 08:45:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 710FE3858D1E Received: by mail-pf1-x434.google.com with SMTP id v74so5539719pfc.1 for ; Fri, 28 Jan 2022 00:45:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=Oatk72sFoqzNKFOt6pBjxEhI6Wo7X3MZM860N0UaFr0=; b=W6MQxC5myexFeVTHjxyUs5rMIgwsnQBoXZGXPBoflzOt1sltQEXQ+nZ32vqeA1k7RZ AsCMruwuJzYRnnOHjREnUmhZ0rR3QJRXTUYUd46DcXsxjEfQsBdE3OUi3SonLQMoVBap SbHuZTi1JbEPEThpuxXmTuvEyWcbm44w9IvrPLsro6J8PEgJ5vF1S+MsRazC0nBA5K0b UoYoTnzpuQdU9GbA/mWS5GJIXZc7OaEh8szZWHB5+6192L/rHJZNjWkIJmCzaO/GrMBA 8SsSKGSdfeDzvL5CpWHGzsixutGxu19fAJ0UkgICWwT+YRc1DWMkq1Mq74qoyUPtn7qZ du8g== X-Gm-Message-State: AOAM531jrG1jISOaTadPYe+j+NupA738AyDonaecVhkoGiiVU1bgqMc/ 0fpmdA4cnEi7Qk6gx9W/TUs= X-Google-Smtp-Source: ABdhPJywbMKjoy0Nk9WYnco8iVAzs9aSRTvNIL340t4XHw3nR3orNyFmRfc6X99+2Sg5pAjHkg687A== X-Received: by 2002:a05:6a00:1588:: with SMTP id u8mr7058815pfk.4.1643359549399; Fri, 28 Jan 2022 00:45:49 -0800 (PST) Received: from squeak.grove.modra.org (158.106.96.58.static.exetel.com.au. [58.96.106.158]) by smtp.gmail.com with ESMTPSA id s17sm8436787pfk.156.2022.01.28.00.45.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jan 2022 00:45:48 -0800 (PST) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id 11DC91140AB2; Fri, 28 Jan 2022 19:15:46 +1030 (ACDT) Date: Fri, 28 Jan 2022 19:15:46 +1030 From: Alan Modra To: Florian Weimer Cc: Alan Modra via Libc-alpha , Tulio Magno Quites Machado Filho Subject: Re: [PATCH 5/5] Enable static-pie on powerpc64 Message-ID: References: <87tudpkopb.fsf@oldenburg.str.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87tudpkopb.fsf@oldenburg.str.redhat.com> X-Spam-Status: No, score=-3037.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham 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: Fri, 28 Jan 2022 08:45:54 -0000 On Thu, Jan 27, 2022 at 07:39:44PM +0100, Florian Weimer wrote: > * Alan Modra via Libc-alpha: > > > diff --git a/sysdeps/powerpc/powerpc64/configure.ac b/sysdeps/powerpc/powerpc64/configure.ac > > index 1f3d54414c..5eedd2f81c 100644 > > --- a/sysdeps/powerpc/powerpc64/configure.ac > > +++ b/sysdeps/powerpc/powerpc64/configure.ac > > @@ -1,6 +1,13 @@ > > GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. > > # Local configure fragment for sysdeps/powerpc/powerpc64. > > > > +dnl It is always possible to access static and hidden symbols in an > > +dnl position independent way. > > +AC_DEFINE(PI_STATIC_AND_HIDDEN) > > I must say that this is the most surprising glibc patch I've seen in a > while. > > But I think it's true—once you've set up the TOC pointer, the link > editor can generate a fixed offset offset for local and hidden symbols. > Has this always been the case for powerpc64le? 2010-06-25 binutils git commit ba761f19f5. I'm not at all sure the optimisation was perfect in binutils-2.21, but yes, medium and large code model toc-indirect code has been converted to toc-relative for a long time. -- Alan Modra Australia Development Lab, IBM