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-ia64.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-ia64.c')
-rw-r--r-- | gas/config/tc-ia64.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/gas/config/tc-ia64.c b/gas/config/tc-ia64.c index cac7d0a..1c3fba0 100644 --- a/gas/config/tc-ia64.c +++ b/gas/config/tc-ia64.c @@ -10413,8 +10413,9 @@ md_apply_fix3 (fix, valP, seg) } if (fix->fx_addsy) { - if (fix->fx_r_type == (int) BFD_RELOC_UNUSED) + switch (fix->fx_r_type) { + case BFD_RELOC_UNUSED: /* This must be a TAG13 or TAG13b operand. There are no external relocs defined for them, so we must give an error. */ as_bad_where (fix->fx_file, fix->fx_line, @@ -10422,6 +10423,18 @@ md_apply_fix3 (fix, valP, seg) elf64_ia64_operands[fix->tc_fix_data.opnd].desc); fix->fx_done = 1; return; + + case BFD_RELOC_IA64_TPREL14: + case BFD_RELOC_IA64_TPREL22: + case BFD_RELOC_IA64_TPREL64I: + case BFD_RELOC_IA64_LTOFF_TPREL22: + case BFD_RELOC_IA64_LTOFF_DTPMOD22: + case BFD_RELOC_IA64_DTPREL14: + case BFD_RELOC_IA64_DTPREL22: + case BFD_RELOC_IA64_DTPREL64I: + case BFD_RELOC_IA64_LTOFF_DTPREL22: + S_SET_THREAD_LOCAL (fix->fx_addsy); + break; } /* ??? This is a hack copied from tc-i386.c to make PCREL relocs |