From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by sourceware.org (Postfix) with ESMTPS id 8E3933858424 for ; Mon, 28 Feb 2022 06:41:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8E3933858424 Received: by mail-pj1-x102d.google.com with SMTP id h17-20020a17090acf1100b001bc68ecce4aso13914054pju.4 for ; Sun, 27 Feb 2022 22:41:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=YqRzKS4KZ7n6sqhzqkgFnrZNKtXkVyKicQdB4YRL19I=; b=m0Nu0j6jk/0a7ZPPTyAKyLZl4pE6ZXuoMsTbSFb0zJtJv0AjAnMuaylWO83hrJ88wL Zmv+QSuoc2hPta/mCMx8Ew9G7RmFGXpmmv7o0r37nnwj5QljsP/bEGRvGM8fGYrfwCql aIpyeq1+kwd7HDv37YHBorY/FsYCoZJyKZ04JTwvGvCnlbfsoKn8zBLk7+g10Iw8KhNo 0z5V137a9oWrZNszgC3Ele5xRsxg0T3R2tGJBgktAiCVa021c6Vdr7HXKasYuO43dgJL xg6V028Pa9RMlL+EO/NCqI9DtDq8m2UtkcsQI+2PkmX9/erLVi4ZoTfojUtelnMt9IlU kgNw== X-Gm-Message-State: AOAM531EZfTcsfkvfSKemmvhNl9l6DMksn0k3NASk2DpkutYBas17Cmb DPH0ni6zFgaHEHfOHOyMaseXHmFWjSM= X-Google-Smtp-Source: ABdhPJw5cDeUBwO+k3WonTgauOC6uwFycGWnHT0sPkTa/9yF4V57QHvcGbQWx9dOKAIKoBEvp2Yuig== X-Received: by 2002:a17:902:b607:b0:14d:c39c:a37 with SMTP id b7-20020a170902b60700b0014dc39c0a37mr19136307pls.84.1646030506331; Sun, 27 Feb 2022 22:41:46 -0800 (PST) Received: from squeak.grove.modra.org ([2406:3400:51d:8cc0:f31d:e338:6c7b:8cfa]) by smtp.gmail.com with ESMTPSA id q15-20020a63504f000000b0037425262293sm9130249pgl.43.2022.02.27.22.41.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Feb 2022 22:41:45 -0800 (PST) From: Alan Modra To: libc-alpha@sourceware.org Cc: Tulio Magno Quites Machado Filho , Alan Modra Subject: [PATCH v2 4/4] powerpc64: Enable static-pie Date: Mon, 28 Feb 2022 17:10:52 +1030 Message-Id: <20220228064052.3413334-5-amodra@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220228064052.3413334-1-amodra@gmail.com> References: <20220228064052.3413334-1-amodra@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3036.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, 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: Mon, 28 Feb 2022 06:41:49 -0000 * sysdeps/powerpc/powerpc64/configure.ac (SUPPORT_STATIC_PIE): Define. (PI_STATIC_AND_HIDDEN): Define. * sysdeps/powerpc/powerpc64/configure: Regenerate. diff --git a/sysdeps/powerpc/powerpc64/configure b/sysdeps/powerpc/powerpc64/configure index fddea0355a..f19dd5578e 100644 --- a/sysdeps/powerpc/powerpc64/configure +++ b/sysdeps/powerpc/powerpc64/configure @@ -1,6 +1,12 @@ # This file is generated from configure.ac by Autoconf. DO NOT EDIT! # Local configure fragment for sysdeps/powerpc/powerpc64. +$as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h + + +$as_echo "#define SUPPORT_STATIC_PIE 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for support for overlapping .opd entries" >&5 $as_echo_n "checking for support for overlapping .opd entries... " >&6; } if ${libc_cv_overlapping_opd+:} false; then : diff --git a/sysdeps/powerpc/powerpc64/configure.ac b/sysdeps/powerpc/powerpc64/configure.ac index 1f3d54414c..7764a65822 100644 --- a/sysdeps/powerpc/powerpc64/configure.ac +++ b/sysdeps/powerpc/powerpc64/configure.ac @@ -1,6 +1,15 @@ GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. # Local configure fragment for sysdeps/powerpc/powerpc64. +dnl It is possible to access static and hidden symbols in a position +dnl independent way requiring no relocation on powerpc64. The linker +dnl edits medium and large model code that uses GOT/TOC entries (which +dnl would require relocation) to r2 relative accesses. +AC_DEFINE(PI_STATIC_AND_HIDDEN) + +dnl Static PIE is supported. +AC_DEFINE(SUPPORT_STATIC_PIE) + AC_CACHE_CHECK(for support for overlapping .opd entries, libc_cv_overlapping_opd, [dnl libc_cv_overlapping_opd=no