]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
or1k: Define PI_STATIC_AND_HIDDEN
authorStafford Horne <shorne@gmail.com>
Fri, 28 Jan 2022 23:20:40 +0000 (08:20 +0900)
committerStafford Horne <shorne@gmail.com>
Wed, 2 Feb 2022 11:05:12 +0000 (20:05 +0900)
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>
sysdeps/or1k/configure [new file with mode: 0644]
sysdeps/or1k/configure.ac [new file with mode: 0644]

diff --git a/sysdeps/or1k/configure b/sysdeps/or1k/configure
new file mode 100644 (file)
index 0000000..1fe508c
--- /dev/null
@@ -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 (file)
index 0000000..76ff97d
--- /dev/null
@@ -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)