diff options
author | Thiemo Seufer <ths@networkno.de> | 2006-07-25 09:01:02 +0000 |
---|---|---|
committer | Thiemo Seufer <ths@networkno.de> | 2006-07-25 09:01:02 +0000 |
commit | 37caec6ba84861ea60063da70e9334c9bd68fb0a (patch) | |
tree | 17a156d3a00216592bccb6fae38698ba458c5cf1 /bfd/elfxx-mips.c | |
parent | 1d89b61077f10ff90ba128dde09b559e9de93cb4 (diff) | |
download | gdb-37caec6ba84861ea60063da70e9334c9bd68fb0a.zip gdb-37caec6ba84861ea60063da70e9334c9bd68fb0a.tar.gz gdb-37caec6ba84861ea60063da70e9334c9bd68fb0a.tar.bz2 |
* elfxx-mips.c (mips_elf_calculate_relocation): Remove magic constant.
Diffstat (limited to 'bfd/elfxx-mips.c')
-rw-r--r-- | bfd/elfxx-mips.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index 5e8bab4..f917ba5 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -4471,7 +4471,8 @@ mips_elf_calculate_relocation (bfd *abfd, bfd *input_bfd, case R_MIPS_GNU_REL16_S2: value = symbol + _bfd_mips_elf_sign_extend (addend, 18) - p; overflowed_p = mips_elf_overflow_p (value, 18); - value = (value >> 2) & howto->dst_mask; + value >>= howto->rightshift; + value &= howto->dst_mask; break; case R_MIPS_GOT_HI16: |