diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2018-08-08 09:24:51 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2018-08-08 09:24:51 +0100 |
commit | 638b730aa37da5b2abfc92194f83bff0971a692f (patch) | |
tree | 79b30a6f896266cd6db093c441d2e268cbac39fa /8.2.0 | |
parent | 8.2.0: new patchset based on 8.1.0 (diff) | |
download | gcc-patches-638b730aa37da5b2abfc92194f83bff0971a692f.tar.gz gcc-patches-638b730aa37da5b2abfc92194f83bff0971a692f.tar.bz2 gcc-patches-638b730aa37da5b2abfc92194f83bff0971a692f.zip |
8.2.0: fix TEXTREL in libitm on sh (PR86712)
Bug: https://gcc.gnu.org/PR86712
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to '8.2.0')
-rw-r--r-- | 8.2.0/gentoo/98_all_sh_textrel-on-libitm.patch | 41 | ||||
-rw-r--r-- | 8.2.0/gentoo/README.history | 2 |
2 files changed, 43 insertions, 0 deletions
diff --git a/8.2.0/gentoo/98_all_sh_textrel-on-libitm.patch b/8.2.0/gentoo/98_all_sh_textrel-on-libitm.patch new file mode 100644 index 0000000..68e50f9 --- /dev/null +++ b/8.2.0/gentoo/98_all_sh_textrel-on-libitm.patch @@ -0,0 +1,41 @@ +Backport of upstream https://gcc.gnu.org/PR86712 + +From 7bb408709cd28034e1bfbd0596887997bcdccee4 Mon Sep 17 00:00:00 2001 +From: law <law@138bc75d-0d04-0410-961f-82ee72b054a4> +Date: Fri, 3 Aug 2018 20:53:08 +0000 +Subject: [PATCH] * config/sh/sjlj.S: Adjust to use PIC vs normal code + to avoid absolute relocation in a shared library. + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263299 138bc75d-0d04-0410-961f-82ee72b054a4 +--- + libitm/ChangeLog | 5 +++++ + libitm/config/sh/.sjlj.S.swp | Bin 0 -> 12288 bytes + libitm/config/sh/sjlj.S | 4 ++-- + 3 files changed, 7 insertions(+), 2 deletions(-) + create mode 100644 libitm/config/sh/.sjlj.S.swp + +diff --git a/libitm/config/sh/sjlj.S b/libitm/config/sh/sjlj.S +index 043f36749be..f265ab8f898 100644 +--- a/libitm/config/sh/sjlj.S ++++ b/libitm/config/sh/sjlj.S +@@ -53,7 +53,7 @@ _ITM_beginTransaction: + #else + cfi_def_cfa_offset (4*10) + #endif +-#if defined HAVE_ATTRIBUTE_VISIBILITY || !defined __PIC__ ++#if !defined __PIC__ + mov.l .Lbegin, r1 + jsr @r1 + mov r15, r5 +@@ -78,7 +78,7 @@ _ITM_beginTransaction: + + .align 2 + .Lbegin: +-#if defined HAVE_ATTRIBUTE_VISIBILITY || !defined __PIC__ ++#if !defined __PIC__ + .long GTM_begin_transaction + #else + .long GTM_begin_transaction@PCREL-(.Lbegin0-.) +-- +2.18.0 + diff --git a/8.2.0/gentoo/README.history b/8.2.0/gentoo/README.history index 4ebb819..b6ba307 100644 --- a/8.2.0/gentoo/README.history +++ b/8.2.0/gentoo/README.history @@ -1,3 +1,5 @@ +1.1 TODO + + 98_all_sh_textrel-on-libitm.patch 1.0 08 Aug 2018 + 95_all_ia64-TEXTREL.patch + 97_all_disable-systemtap-switch.patch |