* elfxx-mips.c (mips_elf_create_dynamic_relocation): Handle

_bfd_elf_section_offset returning -2 the same way as -1.
This commit is contained in:
Alexandre Oliva 2003-01-28 00:18:45 +00:00
parent 8914585cde
commit 4bb9a95f40
2 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2003-01-27 Alexandre Oliva <aoliva@redhat.com>
* elfxx-mips.c (mips_elf_create_dynamic_relocation): Handle
_bfd_elf_section_offset returning -2 the same way as -1.
2003-01-27 Alexandre Oliva <aoliva@redhat.com>
* elfxx-mips.c (mips_elf_multi_got): New function.

View File

@ -3825,11 +3825,9 @@ mips_elf_create_dynamic_relocation (output_bfd, info, rel, h, sec,
}
#endif
if (outrel[0].r_offset == (bfd_vma) -1)
if (outrel[0].r_offset == (bfd_vma) -1
|| outrel[0].r_offset == (bfd_vma) -2)
skip = TRUE;
/* FIXME: For -2 runtime relocation needs to be skipped, but
properly resolved statically and installed. */
BFD_ASSERT (outrel[0].r_offset != (bfd_vma) -2);
/* If we've decided to skip this relocation, just output an empty
record. Note that R_MIPS_NONE == 0, so that this call to memset