aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-07-11 20:06:51 +0300
committerAndreas K. Hüttel <dilfridge@gentoo.org>2020-08-05 22:55:04 +0300
commit205e8b79e88d93cae937fe455c112f0bbadb151a (patch)
tree6f63b943ab168e5fcae379f88450897ae7f2ba7a
parentForce -O0 in conform tests to survive $CC changes (diff)
downloadglibc-205e8b79e88d93cae937fe455c112f0bbadb151a.tar.gz
glibc-205e8b79e88d93cae937fe455c112f0bbadb151a.tar.bz2
glibc-205e8b79e88d93cae937fe455c112f0bbadb151a.zip
Fix miscompilation on ia64's gcc-10gentoo/glibc-2.32-1
Bug: https://bugs.gentoo.org/723268 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
-rw-r--r--sysdeps/unix/sysv/linux/ia64/dl-sysdep.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/ia64/dl-sysdep.h b/sysdeps/unix/sysv/linux/ia64/dl-sysdep.h
index 78fa6dd2c9..e526e02ff4 100644
--- a/sysdeps/unix/sysv/linux/ia64/dl-sysdep.h
+++ b/sysdeps/unix/sysv/linux/ia64/dl-sysdep.h
@@ -32,7 +32,9 @@
#ifndef __ASSEMBLER__
/* Don't declare this as a function---we want it's entry-point, not
it's function descriptor... */
-extern int _dl_sysinfo_break attribute_hidden;
+/* Use section ".text" to force far GPREL64 relocation instead of
+ GPREL22 . */
+extern int _dl_sysinfo_break attribute_hidden __attribute__((section(".text")));
# define DL_SYSINFO_DEFAULT ((uintptr_t) &_dl_sysinfo_break)
# define DL_SYSINFO_IMPLEMENTATION \
asm (".text\n\t" \