summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2020-07-18 19:22:30 +0300
committerAndreas K. Hüttel <dilfridge@gentoo.org>2020-07-18 19:23:02 +0300
commit35cb82bd164e19b0b37a90b1a62da71dd4ddd950 (patch)
tree76e2c0be7a8536f096805df894a5fcbb49cedb35
parentUpdate readme and record used make-tarball.sh version in tarball (diff)
downloadglibc-patches-35cb82bd164e19b0b37a90b1a62da71dd4ddd950.tar.gz
glibc-patches-35cb82bd164e19b0b37a90b1a62da71dd4ddd950.tar.bz2
glibc-patches-35cb82bd164e19b0b37a90b1a62da71dd4ddd950.zip
Add ia64 gcc-10 miscompilation fix; didn't go anywhere upstream yet
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
-rw-r--r--9999/0100-Fix-miscompilation-on-ia64-s-gcc-10.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/9999/0100-Fix-miscompilation-on-ia64-s-gcc-10.patch b/9999/0100-Fix-miscompilation-on-ia64-s-gcc-10.patch
new file mode 100644
index 0000000..45ce958
--- /dev/null
+++ b/9999/0100-Fix-miscompilation-on-ia64-s-gcc-10.patch
@@ -0,0 +1,32 @@
+From 902100a88969641673e91408ff41352d08fa2aa7 Mon Sep 17 00:00:00 2001
+From: Sergei Trofimovich <slyfox@gentoo.org>
+Date: Sat, 11 Jul 2020 20:06:51 +0300
+Subject: [PATCH] Fix miscompilation on ia64's gcc-10
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Bug: https://bugs.gentoo.org/723268
+Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
+---
+ sysdeps/unix/sysv/linux/ia64/dl-sysdep.h | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+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" \
+--
+2.26.2
+