sjlj.S: Adjust to use PIC vs normal code to avoid absolute relocation in a shared...
authorSergei Trofimovich <slyfox@gentoo.org>
Fri, 3 Aug 2018 20:53:08 +0000 (20:53 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 3 Aug 2018 20:53:08 +0000 (14:53 -0600)
* config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
absolute relocation in a shared library.

From-SVN: r263299

libitm/ChangeLog
libitm/config/sh/.sjlj.S.swp [new file with mode: 0644]
libitm/config/sh/sjlj.S

index 729603a97215e0454364a0bb18f3488157b905b5..940520011bf75b6ce1b2027a8a0fef2e1ba42db1 100644 (file)
@@ -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 (file)
index 0000000..3b243ee
Binary files /dev/null and b/libitm/config/sh/.sjlj.S.swp differ
index 043f36749bec012a8b223af57c35acd8615eb8a1..f265ab8f8986b3a06fc112da9371d7288fbb6ac4 100644 (file)
@@ -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-.)