diff options
author | Chris Demetriou <cgd@google.com> | 2004-06-14 18:25:10 +0000 |
---|---|---|
committer | Chris Demetriou <cgd@google.com> | 2004-06-14 18:25:10 +0000 |
commit | 092dcd755dcdcf664b25a7011fd15957f124c29f (patch) | |
tree | 40fdd5b8b97cfcae50dc9ffbc93896575431b5bd /bfd/elfxx-mips.c | |
parent | 700c15aa2af8978c0ad550457244837ecd2a27f7 (diff) | |
download | gdb-092dcd755dcdcf664b25a7011fd15957f124c29f.zip gdb-092dcd755dcdcf664b25a7011fd15957f124c29f.tar.gz gdb-092dcd755dcdcf664b25a7011fd15957f124c29f.tar.bz2 |
[ bfd/ChangeLog ]
2004-06-14 Chris Demetriou <cgd@broadcom.com>
* elf32-mips.c (elf_mips_gnu_pcrel32): Add (undoing 2004-04-24
removal) with updated comment.
(bfd_elf32_bfd_reloc_type_lookup): Add back case for
BFD_RELOC_32_PCREL.
(mips_elf32_rtype_to_howto): Add back case for R_MIPS_PC32.
* elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
[ include/elf/ChangeLog ]
2004-06-14 Chris Demetriou <cgd@broadcom.com>
* mips.h (R_MIPS_PC32): Add back (undoing removal on 2004-04-24),
with an updated comment.
Diffstat (limited to 'bfd/elfxx-mips.c')
-rw-r--r-- | bfd/elfxx-mips.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index 21748f2..cbacd4e 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -3336,6 +3336,11 @@ mips_elf_calculate_relocation (bfd *abfd, bfd *input_bfd, value &= howto->dst_mask; break; + case R_MIPS_PC32: + value = symbol + addend - p; + value &= howto->dst_mask; + break; + case R_MIPS_GNU_REL16_S2: value = symbol + _bfd_mips_elf_sign_extend (addend, 18) - p; overflowed_p = mips_elf_overflow_p (value, 18); |