diff options
author | Joseph Myers <joseph@codesourcery.com> | 2007-07-02 10:49:42 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2007-07-02 10:49:42 +0000 |
commit | 741d6ea85b096ca043859a71ae022ad160a64eec (patch) | |
tree | 25e7aacd60f1dae6eacb8c3bede372b98bdb2995 /bfd/elfxx-mips.c | |
parent | e205a09915bcf2c75f2b925377eb7ce2da90c43a (diff) | |
download | gdb-741d6ea85b096ca043859a71ae022ad160a64eec.zip gdb-741d6ea85b096ca043859a71ae022ad160a64eec.tar.gz gdb-741d6ea85b096ca043859a71ae022ad160a64eec.tar.bz2 |
bfd:
* elfxx-mips.c (mips_elf_calculate_relocation): Handle
R_MIPS_TLS_DTPREL32 and R_MIPS_TLS_DTPREL64.
* elf64-mips.c (mips_elf64_howto_table_rela): Support
R_MIPS_TLS_DTPREL64.
gas:
* config/tc-mips.c (s_dtprelword, s_dtpreldword,
s_dtprel_internal): New.
(mips_pseudo_table): Add .dtprelword and .dtpreldword.
(md_apply_fix): Handle BFD_RELOC_MIPS_TLS_DTPREL32 and
BFD_RELOC_MIPS_TLS_DTPREL64.
Diffstat (limited to 'bfd/elfxx-mips.c')
-rw-r--r-- | bfd/elfxx-mips.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index d368d41..28a4e8b 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -4355,6 +4355,8 @@ mips_elf_calculate_relocation (bfd *abfd, bfd *input_bfd, break; case R_MIPS_TLS_DTPREL_LO16: + case R_MIPS_TLS_DTPREL32: + case R_MIPS_TLS_DTPREL64: value = (symbol + addend - dtprel_base (info)) & howto->dst_mask; break; |