]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: re PR libitm/86712 (libitm produces libitm.so with TEXTREL on SuperH (sh4...
authorOleg Endo <olegendo@gcc.gnu.org>
Sat, 28 Sep 2019 09:12:34 +0000 (09:12 +0000)
committerOleg Endo <olegendo@gcc.gnu.org>
Sat, 28 Sep 2019 09:12:34 +0000 (09:12 +0000)
libitm/
2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>

Backport from mainline
2018-08-03  Sergei Trofimovich  <slyfox@gentoo.org>

PR target/86712
* config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
absolute relocation in a shared library.

From-SVN: r276247

libitm/ChangeLog
libitm/config/sh/sjlj.S

index 38d259671db1456a069ff6e84a4754a2dd28a2e0..4f0b10510753d0f71b1c0c428e84cfa2b064aa83 100644 (file)
@@ -1,3 +1,12 @@
+2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
+
+       Backport from mainline
+       2018-08-03  Sergei Trofimovich  <slyfox@gentoo.org>
+
+       PR target/86712
+       * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
+       absolute relocation in a shared library.
+
 2018-12-13  Peter Bergner  <bergner@linux.ibm.com>
 
        Backport from mainline
index 0159fed2b473fb7ff205ec6f1517f584a12a0bf1..6ed2b8b25b8fe8a4ea4cdb3157c3fd0a5d1d55cb 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-.)