]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
aarch64: define PI_STATIC_AND_HIDDEN
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 5 Jan 2021 16:10:40 +0000 (16:10 +0000)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 8 Jan 2021 11:14:02 +0000 (11:14 +0000)
AArch64 always uses pc relative access to static and hidden object
symbols, but the config setting was previously missing.

This affects ld.so start up code.

sysdeps/aarch64/configure
sysdeps/aarch64/configure.ac

index 1f8223725f748d425bb8f184109e7c9128a733a7..5f5f3cc44ce4c7ba1279f9dac30e134b1f0de1d3 100644 (file)
@@ -1,6 +1,11 @@
 # This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
  # Local configure fragment for sysdeps/aarch64.
 
+# Static and hidden objects are accessed without dynamic relocations.
+# The exception is -mcmodel=large which is unsupported with PIC/PIE.
+$as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h
+
+
 # We check to see if the compiler and flags are
 # selecting the big endian ABI and if they are then
 # we set libc_cv_aarch64_be to yes which causes
index da2a8d81d073ef781ea35998e320cf263d2625a9..180a16a29fe95073ccbec1eec0609e13b8505223 100644 (file)
@@ -1,6 +1,10 @@
 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
 # Local configure fragment for sysdeps/aarch64.
 
+# Static and hidden objects are accessed without dynamic relocations.
+# The exception is -mcmodel=large which is unsupported with PIC/PIE.
+AC_DEFINE(PI_STATIC_AND_HIDDEN)
+
 # We check to see if the compiler and flags are
 # selecting the big endian ABI and if they are then
 # we set libc_cv_aarch64_be to yes which causes