mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-01 09:49:43 +08:00
* elfxx-mips.c (mips_elf_next_relocation): Tighten check to test
also for same symbol.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2006-07-25 Thiemo Seufer <ths@networkno.de>
|
||||||
|
|
||||||
|
* elfxx-mips.c (mips_elf_next_relocation): Tighten check to test
|
||||||
|
also for same symbol.
|
||||||
|
|
||||||
2006-07-25 Thiemo Seufer <ths@mips.com>
|
2006-07-25 Thiemo Seufer <ths@mips.com>
|
||||||
|
|
||||||
* elfxx-mips.c (mips_elf_calculate_relocation): Remove magic constant.
|
* elfxx-mips.c (mips_elf_calculate_relocation): Remove magic constant.
|
||||||
|
@ -3583,9 +3583,12 @@ mips_elf_next_relocation (bfd *abfd ATTRIBUTE_UNUSED, unsigned int r_type,
|
|||||||
const Elf_Internal_Rela *relocation,
|
const Elf_Internal_Rela *relocation,
|
||||||
const Elf_Internal_Rela *relend)
|
const Elf_Internal_Rela *relend)
|
||||||
{
|
{
|
||||||
|
unsigned long r_symndx = ELF_R_SYM (abfd, relocation->r_info);
|
||||||
|
|
||||||
while (relocation < relend)
|
while (relocation < relend)
|
||||||
{
|
{
|
||||||
if (ELF_R_TYPE (abfd, relocation->r_info) == r_type)
|
if (ELF_R_TYPE (abfd, relocation->r_info) == r_type
|
||||||
|
&& ELF_R_SYM (abfd, relocation->r_info) == r_symndx)
|
||||||
return relocation;
|
return relocation;
|
||||||
|
|
||||||
++relocation;
|
++relocation;
|
||||||
|
Reference in New Issue
Block a user