aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2003-01-28 00:18:45 +0000
committerAlexandre Oliva <aoliva@redhat.com>2003-01-28 00:18:45 +0000
commit4bb9a95f401d1256972cceccce5dd478413f195f (patch)
tree470648351bfca255982161df89fbf6854acb54aa /bfd
parent8914585cde640d18196dffc44b84b8ab2baaf590 (diff)
downloadgdb-4bb9a95f401d1256972cceccce5dd478413f195f.zip
gdb-4bb9a95f401d1256972cceccce5dd478413f195f.tar.gz
gdb-4bb9a95f401d1256972cceccce5dd478413f195f.tar.bz2
* elfxx-mips.c (mips_elf_create_dynamic_relocation): Handle
_bfd_elf_section_offset returning -2 the same way as -1.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elfxx-mips.c6
2 files changed, 7 insertions, 4 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 4b6e75c..39040e6 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
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.
(struct mips_got_entry): Make symndx and gotidx signed. Moved
addend into union along with address and link hash entry.
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index 7cd0ecc..12d898e 100644
--- a/bfd/elfxx-mips.c
+++ b/bfd/elfxx-mips.c
@@ -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