summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2018-08-03 20:53:08 +0000
committerJeff Law <law@gcc.gnu.org>2018-08-03 14:53:08 -0600
commitf6a9dfd3699430b40febb4d4a894e5a9e6302874 (patch)
tree276d2e4d2253f7ea7195f5aba0f8c1861086224d
parentbc31a87ac791bc6e733405b1539fbd710c92813e (diff)
sjlj.S: Adjust to use PIC vs normal code to avoid absolute relocation in a shared library.
* config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid absolute relocation in a shared library. From-SVN: r263299
-rw-r--r--libitm/ChangeLog5
-rw-r--r--libitm/config/sh/.sjlj.S.swpbin0 -> 12288 bytes
-rw-r--r--libitm/config/sh/sjlj.S4
3 files changed, 7 insertions, 2 deletions
diff --git a/libitm/ChangeLog b/libitm/ChangeLog
index 729603a9721..940520011bf 100644
--- a/libitm/ChangeLog
+++ b/libitm/ChangeLog
@@ -1,3 +1,8 @@
+2018-08-03 Sergei Trofimovich <slyfox@gentoo.org>
+
+ * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
+ absolute relocation in a shared library.
+
2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
PR libitm/85988
diff --git a/libitm/config/sh/.sjlj.S.swp b/libitm/config/sh/.sjlj.S.swp
new file mode 100644
index 00000000000..3b243ee20a3
--- /dev/null
+++ b/libitm/config/sh/.sjlj.S.swp
Binary files differ
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-.)