seen with a local symbol, rather than crashing.
Fri Mar 14 16:43:22 1997 Ian Lance Taylor <ian@cygnus.com>
+ * elf32-mips.c (mips_elf_check_relocs): Give an error if CALL16 is
+ seen with a local symbol, rather than crashing.
+
* elfcode.h (elf_slurp_symbol_table): Don't try to read the
version symbols if there aren't any.
case R_MIPS_CALL_LO16:
/* This symbol requires a global offset table entry. */
- BFD_ASSERT (h != NULL);
+ if (h == NULL)
+ {
+ (*_bfd_error_handler)
+ ("%s: CALL16 reloc at 0x%lx not against global symbol",
+ bfd_get_filename (abfd), (unsigned long) rel->r_offset);
+ bfd_set_error (bfd_error_bad_value);
+ return false;
+ }
/* Make sure this symbol is output as a dynamic symbol. */
if (h->dynindx == -1)