aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2019-08-12 20:36:37 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2019-08-12 20:36:37 +0100
commitb2f1fe64d5b63950a9ca1b3e4306af3aeb05906c (patch)
treefff7653d7d225401195d1504ff1972f8dc27f7f7 /9.2.0/gentoo/14_all_ia64-TEXTREL.patch
parent3.3.6: cut 2 patchset (diff)
downloadgcc-patches-b2f1fe64d5b63950a9ca1b3e4306af3aeb05906c.tar.gz
gcc-patches-b2f1fe64d5b63950a9ca1b3e4306af3aeb05906c.tar.bz2
gcc-patches-b2f1fe64d5b63950a9ca1b3e4306af3aeb05906c.zip
9.2.0: cut initial patchset, a copy of 9.1.0 patches
Two upstreamed patches removed: - 26_all_ipa-incomplete.patch - 27_all_es-po.patch Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to '9.2.0/gentoo/14_all_ia64-TEXTREL.patch')
-rw-r--r--9.2.0/gentoo/14_all_ia64-TEXTREL.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/9.2.0/gentoo/14_all_ia64-TEXTREL.patch b/9.2.0/gentoo/14_all_ia64-TEXTREL.patch
new file mode 100644
index 0000000..706dbe5
--- /dev/null
+++ b/9.2.0/gentoo/14_all_ia64-TEXTREL.patch
@@ -0,0 +1,22 @@
+Fix textrels on -rdynamic binaries:
+Bug: https://gcc.gnu.org/PR84553
+Bug: https://bugs.gentoo.org/566118
+--- a/gcc/config/ia64/ia64.c
++++ a/gcc/config/ia64/ia64.c
+@@ -10838,12 +10838,14 @@ ia64_hpux_reloc_rw_mask (void)
+
+ /* For others, relax this so that relocations to local data goes in
+ read-only segments, but we still cannot allow global relocations
+- in read-only segments. */
++ in read-only segments. Except that use of -rdynamic at link time
++ may make any local data global, so we can't allow local data in
++ read-only segments either. */
+
+ static int
+ ia64_reloc_rw_mask (void)
+ {
+- return flag_pic ? 3 : 2;
++ return flag_pic ? 3 : 3;
+ }
+
+ /* Return the section to use for X. The only special thing we do here