diff options
author | Kaz Kojima <kkojima@rr.iij4u.or.jp> | 2002-11-28 23:57:59 +0000 |
---|---|---|
committer | Kaz Kojima <kkojima@rr.iij4u.or.jp> | 2002-11-28 23:57:59 +0000 |
commit | 2bba414012707d7c1267005b9dd9cd12c200fa87 (patch) | |
tree | 2556a5bc3afe2f345ed89141a17dd29759a589b7 /gas/config/tc-sh.c | |
parent | 7925dd68c97aa972e07c286047dc646cff33fada (diff) | |
download | gdb-2bba414012707d7c1267005b9dd9cd12c200fa87.zip gdb-2bba414012707d7c1267005b9dd9cd12c200fa87.tar.gz gdb-2bba414012707d7c1267005b9dd9cd12c200fa87.tar.bz2 |
* config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
for TLS relocations.
Diffstat (limited to 'gas/config/tc-sh.c')
-rw-r--r-- | gas/config/tc-sh.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c index 5c62303..eac7fc1 100644 --- a/gas/config/tc-sh.c +++ b/gas/config/tc-sh.c @@ -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 |