about summary refs log tree commit diff
path: root/sysdeps/or1k
diff options
context:
space:
mode:
authorStafford Horne <shorne@gmail.com>2022-01-29 08:20:40 +0900
committerStafford Horne <shorne@gmail.com>2022-02-02 20:05:12 +0900
commit3f35e7d193b7ff098467996ebf85b19c41d6d86e (patch)
tree160f3760afadfc13b6d53ce9d9622df07a31a0a0 /sysdeps/or1k
parent355bc7f736fb4cbc81979a7fce674858173f34cf (diff)
downloadglibc-3f35e7d193b7ff098467996ebf85b19c41d6d86e.tar.gz
glibc-3f35e7d193b7ff098467996ebf85b19c41d6d86e.tar.xz
glibc-3f35e7d193b7ff098467996ebf85b19c41d6d86e.zip
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>
Diffstat (limited to 'sysdeps/or1k')
-rw-r--r--sysdeps/or1k/configure5
-rw-r--r--sysdeps/or1k/configure.ac4
2 files changed, 9 insertions, 0 deletions
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)