mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-26 04:15:28 +00:00
* elfxx-mips.c (mips_elf_calculate_relocation): Remove magic constant.
This commit is contained in:
parent
1d89b61077
commit
37caec6ba8
@ -1,3 +1,7 @@
|
||||
2006-07-25 Thiemo Seufer <ths@mips.com>
|
||||
|
||||
* elfxx-mips.c (mips_elf_calculate_relocation): Remove magic constant.
|
||||
|
||||
2006-07-24 Michael Wetherell <mike.wetherell@ntlworld.com>
|
||||
|
||||
* elf.c (bfd_section_from_shdr): Reject unrecognised OS-specific
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user