aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-ppc.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2004-10-02 00:18:31 +0000
committerH.J. Lu <hjl.tools@gmail.com>2004-10-02 00:18:31 +0000
commit7c1d09598d407e1f37cdbcc843c56359bc9b1a28 (patch)
tree5757146aac5306e769f4897cd9a7b905cee1f161 /gas/config/tc-ppc.c
parent007807770d1da6999b3b5408d60b928a05512a0d (diff)
downloadgdb-7c1d09598d407e1f37cdbcc843c56359bc9b1a28.zip
gdb-7c1d09598d407e1f37cdbcc843c56359bc9b1a28.tar.gz
gdb-7c1d09598d407e1f37cdbcc843c56359bc9b1a28.tar.bz2
2004-10-01 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-ppc.c (md_apply_fix3): Call S_SET_THREAD_LOCAL for TLS relocations. * config/tc-s390.c (md_apply_fix3): Likewise. * config/tc-sparc.c (md_apply_fix3): Likewise.
Diffstat (limited to 'gas/config/tc-ppc.c')
-rw-r--r--gas/config/tc-ppc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index eb119ea..410c0f2 100644
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -5846,6 +5846,8 @@ md_apply_fix3 (fixP, valP, seg)
break;
case BFD_RELOC_PPC_TLS:
+ break;
+
case BFD_RELOC_PPC_DTPMOD:
case BFD_RELOC_PPC_TPREL16:
case BFD_RELOC_PPC_TPREL16_LO:
@@ -5885,6 +5887,7 @@ md_apply_fix3 (fixP, valP, seg)
case BFD_RELOC_PPC64_DTPREL16_HIGHERA:
case BFD_RELOC_PPC64_DTPREL16_HIGHEST:
case BFD_RELOC_PPC64_DTPREL16_HIGHESTA:
+ S_SET_THREAD_LOCAL (fixP->fx_addsy);
break;
#endif
/* Because SDA21 modifies the register field, the size is set to 4