* config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
authorKaz Kojima <kkojima@rr.iij4u.or.jp>
Thu, 28 Nov 2002 23:57:59 +0000 (23:57 +0000)
committerKaz Kojima <kkojima@rr.iij4u.or.jp>
Thu, 28 Nov 2002 23:57:59 +0000 (23:57 +0000)
for TLS relocations.

gas/ChangeLog
gas/config/tc-sh.c

index 72d741b46c95fcc621cf2caf6386652a2ea0051e..2925f1345dfa3ff3f2901d8b67e1ec9dd4473923 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-29  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
+
+       * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
+       for TLS relocations.
+
 2002-11-29  Jakub Jelinek  <jakub@redhat.com>
 
        * config/tc-ia64.c (md_apply_fix3): Add default case.
index 5c623033ba60b158cf1ac0a66072859f36f3f67d..eac7fc145014f0739428a096df15e62b2bb2518c 100644 (file)
@@ -3544,18 +3544,22 @@ md_apply_fix3 (fixP, valP, seg)
       md_number_to_chars (buf, val, 4);
       break;
 
-    case BFD_RELOC_32_GOT_PCREL:
-    case BFD_RELOC_SH_GOTPLT32:
     case BFD_RELOC_SH_TLS_GD_32:
     case BFD_RELOC_SH_TLS_LD_32:
     case BFD_RELOC_SH_TLS_IE_32:
+      S_SET_THREAD_LOCAL (fixP->fx_addsy);
+      /* Fallthrough */
+    case BFD_RELOC_32_GOT_PCREL:
+    case BFD_RELOC_SH_GOTPLT32:
       * valP = 0; /* Fully resolved at runtime.  No addend.  */
       md_number_to_chars (buf, 0, 4);
       break;
 
-    case BFD_RELOC_32_GOTOFF:
     case BFD_RELOC_SH_TLS_LDO_32:
     case BFD_RELOC_SH_TLS_LE_32:
+      S_SET_THREAD_LOCAL (fixP->fx_addsy);
+      /* Fallthrough */
+    case BFD_RELOC_32_GOTOFF:
       md_number_to_chars (buf, val, 4);
       break;
 #endif