mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-29 12:53:43 +08:00
* cofflink.c (_bfd_coff_link_input_bfd): Don't crash if there is
no hash table entry for a global symbol.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Wed Oct 2 12:02:02 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
|
* cofflink.c (_bfd_coff_link_input_bfd): Don't crash if there is
|
||||||
|
no hash table entry for a global symbol.
|
||||||
|
|
||||||
Tue Oct 1 16:14:22 1996 Joel Sherrill <joel@oarcorp.com>
|
Tue Oct 1 16:14:22 1996 Joel Sherrill <joel@oarcorp.com>
|
||||||
|
|
||||||
* config.bfd (mips*-*-rtems*): New target, like mips*-*-elf*.
|
* config.bfd (mips*-*-rtems*): New target, like mips*-*-elf*.
|
||||||
|
@ -1514,7 +1514,13 @@ _bfd_coff_link_input_bfd (finfo, input_bfd)
|
|||||||
indx = ((esym - (bfd_byte *) obj_coff_external_syms (input_bfd))
|
indx = ((esym - (bfd_byte *) obj_coff_external_syms (input_bfd))
|
||||||
/ isymesz);
|
/ isymesz);
|
||||||
h = obj_coff_sym_hashes (input_bfd)[indx];
|
h = obj_coff_sym_hashes (input_bfd)[indx];
|
||||||
BFD_ASSERT (h != NULL);
|
if (h == NULL)
|
||||||
|
{
|
||||||
|
/* This can happen if there were errors earlier in
|
||||||
|
the link. */
|
||||||
|
bfd_set_error (bfd_error_bad_value);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
h->indx = output_index;
|
h->indx = output_index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user