diff options
author | 2020-07-11 20:06:51 +0300 | |
---|---|---|
committer | 2020-08-05 22:55:04 +0300 | |
commit | 205e8b79e88d93cae937fe455c112f0bbadb151a (patch) | |
tree | 6f63b943ab168e5fcae379f88450897ae7f2ba7a | |
parent | Force -O0 in conform tests to survive $CC changes (diff) | |
download | glibc-gentoo/glibc-2.32-1.tar.gz glibc-gentoo/glibc-2.32-1.tar.bz2 glibc-gentoo/glibc-2.32-1.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.h | 4 |
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" \ |