public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] or1k: Define PI_STATIC_AND_HIDDEN
@ 2022-02-02 11:05 Stafford Horne
  0 siblings, 0 replies; only message in thread
From: Stafford Horne @ 2022-02-02 11:05 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3f35e7d193b7ff098467996ebf85b19c41d6d86e

commit 3f35e7d193b7ff098467996ebf85b19c41d6d86e
Author: Stafford Horne <shorne@gmail.com>
Date:   Sat Jan 29 08:20:40 2022 +0900

    or1k: Define PI_STATIC_AND_HIDDEN
    
    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 <fweimer@redhat.com>

Diff:
---
 sysdeps/or1k/configure    | 5 +++++
 sysdeps/or1k/configure.ac | 4 ++++
 2 files changed, 9 insertions(+)

diff --git a/sysdeps/or1k/configure b/sysdeps/or1k/configure
new file mode 100644
index 0000000000..1fe508c447
--- /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.
+
+$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..76ff97dc9a
--- /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.
+
+AC_DEFINE(PI_STATIC_AND_HIDDEN)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-02 11:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-02 11:05 [glibc] or1k: Define PI_STATIC_AND_HIDDEN Stafford Horne

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).