From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <3YnpvYgcKCi8XLdVcLjRZZRWP.NZXWTMN-LWaSLdZfcNPhLcP.ZcR@flex--maskray.bounces.google.com> Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by sourceware.org (Postfix) with ESMTPS id BF7A13858D33 for ; Mon, 2 May 2022 06:29:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BF7A13858D33 Received: by mail-yb1-xb49.google.com with SMTP id b11-20020a5b008b000000b00624ea481d55so12467217ybp.19 for ; Sun, 01 May 2022 23:29:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=7HkLe65bfeN+yhTYx+wW7Px/F6VoeoaS8fJJW/52rHI=; b=wdBKBQa77uc7kR9WVzh1gwtrYt10OBd504K0BV7CTw2axMEBqa0XaJjvxvq42ka1oL gVdf+rtxx7OCMqE//Bvfxa/GfR43Sxe8KpawL2PX8GSpqbpt3dFFJZ/D2NtyImLuVp1I HtC/StHRbbA8gQMFjPe/x7k0JmJ6DXhYsVw2D1372VyYDEo899eYsU1KGrwAxyRceOsX ekeHvUUteJlIok9hLYGIeiHgly0+1eC9Upmex35vSAXcBNpo9se733DW8Cfww0CFoP2b k2SaKFz57+isXNQcQbRFWLs48k6mDxZfHkMRr+8fceMAP9QjuSKTn8QEt6gNYRVWiA+Z 1fPQ== X-Gm-Message-State: AOAM533xjRCd1PKvxMl/iBtJxlNA6d57xtSbGEfYP/dY+K6w424CVh5C zVe2ePwh1wPsNjUr1Da/QL6ktA+1ueoAlv4UvT6JNKpy4sWlr8m9dXlL4CKNwnBq5C5HTw6B6I3 YwWsRwYd+ixXdUzom5CKg56xZxMuMSBFD9zsQ9koz8FOJKAtE/rf9MUStpr7xSMCT2bPm X-Google-Smtp-Source: ABdhPJza8/Tb74Mi688D7wPJ/13iOznkN3mnUg2MhHSNSyhkC14a+zuQ03tPilh1Qn7LW8mSop4fmTtGeMNM X-Received: from maskray1.svl.corp.google.com ([2620:15c:2ce:200:64b6:e3aa:b0d4:aff5]) (user=maskray job=sendgmr) by 2002:a25:e7d5:0:b0:648:f583:d1d2 with SMTP id e204-20020a25e7d5000000b00648f583d1d2mr9525217ybh.473.1651472994101; Sun, 01 May 2022 23:29:54 -0700 (PDT) Date: Sun, 1 May 2022 23:29:49 -0700 Message-Id: <20220502062949.2561455-1-maskray@google.com> Mime-Version: 1.0 Subject: [PATCH] powerpc32: Remove unused HAVE_PPC_SECURE_PLT From: Fangrui Song To: libc-alpha@sourceware.org, Tulio Magno Quites Machado Filho Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-20.0 required=5.0 tests=BAYES_00, DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL 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, 02 May 2022 06:29:59 -0000 82a79e7d1843f9d90075a0bf2f04557040829bb0 removed the only user of HAVE_PPC_SECURE_PLT. --- config.h.in | 3 --- sysdeps/powerpc/powerpc32/configure | 27 -------------------------- sysdeps/powerpc/powerpc32/configure.ac | 14 ------------- 3 files changed, 44 deletions(-) diff --git a/config.h.in b/config.h.in index 916465fce8..dd650ddd09 100644 --- a/config.h.in +++ b/config.h.in @@ -153,9 +153,6 @@ /* Define if inlined system calls are available. */ #undef HAVE_INLINED_SYSCALLS -/* Define if your compiler defaults to -msecure-plt mode on ppc. */ -#undef HAVE_PPC_SECURE_PLT - /* Define if memory tagging support should be enabled. */ #undef USE_MTAG diff --git a/sysdeps/powerpc/powerpc32/configure b/sysdeps/powerpc/powerpc32/configure index 551505327a..eb1bcbe651 100644 --- a/sysdeps/powerpc/powerpc32/configure +++ b/sysdeps/powerpc/powerpc32/configure @@ -3,30 +3,3 @@ $as_echo "#define HIDDEN_VAR_NEEDS_DYNAMIC_RELOC 1" >>confdefs.h - -# See whether GCC uses -msecure-plt. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -msecure-plt by default" >&5 -$as_echo_n "checking for -msecure-plt by default... " >&6; } -if ${libc_cv_ppc_secure_plt+:} false; then : - $as_echo_n "(cached) " >&6 -else - echo 'int foo (void) { extern int bar; return bar; }' > conftest.c -libc_cv_ppc_secure_plt=no -if { ac_try='${CC-cc} -S $CFLAGS conftest.c -fpic -o conftest.s 1>&5' - { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 - (eval $ac_try) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; }; then - if grep '_GLOBAL_OFFSET_TABLE_-.*@ha' conftest.s > /dev/null 2>&1; then - libc_cv_ppc_secure_plt=yes - fi -fi -rm -rf conftest* -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc_secure_plt" >&5 -$as_echo "$libc_cv_ppc_secure_plt" >&6; } -if test $libc_cv_ppc_secure_plt = yes; then - $as_echo "#define HAVE_PPC_SECURE_PLT 1" >>confdefs.h - -fi diff --git a/sysdeps/powerpc/powerpc32/configure.ac b/sysdeps/powerpc/powerpc32/configure.ac index 2f0ea63e0d..158f464b95 100644 --- a/sysdeps/powerpc/powerpc32/configure.ac +++ b/sysdeps/powerpc/powerpc32/configure.ac @@ -2,17 +2,3 @@ GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. # Local configure fragment for sysdeps/powerpc/powerpc32. AC_DEFINE(HIDDEN_VAR_NEEDS_DYNAMIC_RELOC) - -# See whether GCC uses -msecure-plt. -AC_CACHE_CHECK(for -msecure-plt by default, libc_cv_ppc_secure_plt, [dnl -echo 'int foo (void) { extern int bar; return bar; }' > conftest.c -libc_cv_ppc_secure_plt=no -if AC_TRY_COMMAND(${CC-cc} -S $CFLAGS conftest.c -fpic -o conftest.s 1>&AS_MESSAGE_LOG_FD); then - if grep '_GLOBAL_OFFSET_TABLE_-.*@ha' conftest.s > /dev/null 2>&1; then - libc_cv_ppc_secure_plt=yes - fi -fi -rm -rf conftest*]) -if test $libc_cv_ppc_secure_plt = yes; then - AC_DEFINE(HAVE_PPC_SECURE_PLT) -fi -- 2.36.0.464.gb9c8b46e94-goog