diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2020-07-11 20:06:51 +0300 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2020-07-11 20:06:51 +0300 |
commit | 902100a88969641673e91408ff41352d08fa2aa7 (patch) | |
tree | c48b7d4cee93f6af0859c5af430b5d81f98e9914 | |
parent | sparc: Avoid clobbering register parameters in syscall (diff) | |
download | glibc-902100a88969641673e91408ff41352d08fa2aa7.tar.gz glibc-902100a88969641673e91408ff41352d08fa2aa7.tar.bz2 glibc-902100a88969641673e91408ff41352d08fa2aa7.zip |
Fix miscompilation on ia64's gcc-10
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" \ |