From patchwork Fri Jan 28 23:28:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stafford Horne X-Patchwork-Id: 50560 X-Patchwork-Delegate: azanella@linux.vnet.ibm.com Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 859DF385F026 for ; Fri, 28 Jan 2022 23:29:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 859DF385F026 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1643412567; bh=okVLYY5tudmPxE4wvziU7S4Bp1GOjUxdrMHwz4V8Tew=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=QUqA7eCyIBrQnSUKmuQuHUrk5Qhgu8wYKWK6/PraWHR/zNX/c1zJz220uw7lqAiwt IPaKDglMTuUt2ZcHb+H7TkO0QEZc76vwNq6bxVL/hpq/P/iCKMduFWOEyD49JLIceC NaAm7d0QqoNigqQReixf8kfZbeMJchF7NmnjkmZQ= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by sourceware.org (Postfix) with ESMTPS id BDF583858D28 for ; Fri, 28 Jan 2022 23:29:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BDF583858D28 Received: by mail-pf1-x433.google.com with SMTP id u130so7565672pfc.2 for ; Fri, 28 Jan 2022 15:29:00 -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:mime-version :content-transfer-encoding; bh=okVLYY5tudmPxE4wvziU7S4Bp1GOjUxdrMHwz4V8Tew=; b=u7LlFYpx8CeVLQj0GHF58TGRBQkzWk2rDdnvPRH+cYrVWwGS6GfjorfGFIzFCSw1f6 CqSbjjURTCjDc3wfxoKMDr/Ed31lw2g7EGxwp1hySGGXiK8HNxUi7HKT9V1QR7ydB/TW Jk+hsF0+c4GbkHtTyaQAvTN5EPQYIPWGfPkeAFvK3HKUdmD6tOLgLKKiCHOCtyZYQpSY 8+naxpsI5ONKXpobIF7EphMCY/JKnhJCa8q2dyI6qEl5KHs6sLhtQ7VpCgpXboz8laqB 07mGQnn0TQzL4fl3RN9QPFScDbcI3Pp2q7kK2LlZs71XA9QJKryplsxZrEL9XRipxIhd 5qYQ== X-Gm-Message-State: AOAM532G8nV09OdOFMFHQN2XLiVEx3K0N+JWf65wsNkGjKUsnmEdeDm9 y+Q7+bKC/cZklX1OMiMyFJQd+5ujuLU= X-Google-Smtp-Source: ABdhPJwkw49XfwF4E+HxgnVyBvkgA7s+Hhyh4ZI6a37RXiO7f655A1p+tplzo9L+3WpyHAp3DG6IvQ== X-Received: by 2002:a05:6a00:1345:: with SMTP id k5mr10540800pfu.37.1643412539375; Fri, 28 Jan 2022 15:28:59 -0800 (PST) Received: from localhost ([2409:10:24a0:4700:e8ad:216a:2a9d:6d0c]) by smtp.gmail.com with ESMTPSA id k5sm11134652pfc.85.2022.01.28.15.28.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jan 2022 15:28:58 -0800 (PST) To: GLIBC patches Subject: [PATCH] or1k: Define PI_STATIC_AND_HIDDEN Date: Sat, 29 Jan 2022 08:28:42 +0900 Message-Id: <20220128232842.3329969-1-shorne@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Spam-Status: No, score=-10.9 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-Patchwork-Original-From: Stafford Horne via Libc-alpha From: Stafford Horne Reply-To: Stafford Horne Cc: Florian Weimer , Openrisc Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" PI_STATIC_AND_HIDDEN means that references to static functions, data and symbols with hidden visibility do not need any run-time relocations after the final link, with the build flags used by glibc. OpenRISC follows this so enabled PI_STATIC_AND_HIDDEN by adding configure.ac and generating configure. Suggested-by: Florian Weimer --- This was discussed on the mailing list: https://sourceware.org/pipermail/libc-alpha/2022-January/135620.html I thought to get this out as I start to test 2.35 we want this change in. sysdeps/or1k/configure | 5 +++++ sysdeps/or1k/configure.ac | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 sysdeps/or1k/configure create mode 100644 sysdeps/or1k/configure.ac diff --git a/sysdeps/or1k/configure b/sysdeps/or1k/configure new file mode 100644 index 0000000000..d73db4ddbe --- /dev/null +++ b/sysdeps/or1k/configure @@ -0,0 +1,5 @@ +# This file is generated from configure.ac by Autoconf. DO NOT EDIT! + # Local configure fragment for sysdeps/or1k/elf. + +$as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h + diff --git a/sysdeps/or1k/configure.ac b/sysdeps/or1k/configure.ac new file mode 100644 index 0000000000..db6a6087e1 --- /dev/null +++ b/sysdeps/or1k/configure.ac @@ -0,0 +1,4 @@ +GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. +# Local configure fragment for sysdeps/or1k/elf. + +AC_DEFINE(PI_STATIC_AND_HIDDEN)