diff options
author | Jakub Jelinek <jakub@redhat.com> | 2002-11-28 14:15:55 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2002-11-28 14:15:55 +0000 |
commit | 00f7efb6ccc0e31cece4ef606c7e796b4605a26d (patch) | |
tree | 9e4d578ba06f3185b6991a89ee424937242836aa /gas/config/tc-alpha.c | |
parent | 381a1ab30c060addb84bcd45ae1fbe1abd8c8f4d (diff) | |
download | gdb-00f7efb6ccc0e31cece4ef606c7e796b4605a26d.zip gdb-00f7efb6ccc0e31cece4ef606c7e796b4605a26d.tar.gz gdb-00f7efb6ccc0e31cece4ef606c7e796b4605a26d.tar.bz2 |
* symbols.c (S_SET_THREAD_LOCAL): New function.
* symbols.h (S_SET_THREAD_LOCAL): New prototype.
* config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
for TLS relocations.
* config/tc-ia64.c (md_apply_fix3): Likewise.
* config/tc-alpha.c (md_apply_fix3): Likewise.
* ld-i386/tlsnopic.rd: Change NOTYPE to TLS for UND sg* symbols.
Diffstat (limited to 'gas/config/tc-alpha.c')
-rw-r--r-- | gas/config/tc-alpha.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gas/config/tc-alpha.c b/gas/config/tc-alpha.c index c54594b..e546dcf 100644 --- a/gas/config/tc-alpha.c +++ b/gas/config/tc-alpha.c @@ -1261,6 +1261,8 @@ md_apply_fix3 (fixP, valP, seg) #ifdef OBJ_ELF case BFD_RELOC_ALPHA_BRSGP: + return; + case BFD_RELOC_ALPHA_TLSGD: case BFD_RELOC_ALPHA_TLSLDM: case BFD_RELOC_ALPHA_GOTDTPREL16: @@ -1271,6 +1273,8 @@ md_apply_fix3 (fixP, valP, seg) case BFD_RELOC_ALPHA_TPREL_HI16: case BFD_RELOC_ALPHA_TPREL_LO16: case BFD_RELOC_ALPHA_TPREL16: + if (fixP->fx_addsy) + S_SET_THREAD_LOCAL (fixP->fx_addsy); return; #endif |