mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 18:08:24 +08:00
* elf32-mips.c (mips_elf_check_relocs): Give an error if CALL16 is
seen with a local symbol, rather than crashing.
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
Fri Mar 14 16:43:22 1997 Ian Lance Taylor <ian@cygnus.com>
|
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
|
* elfcode.h (elf_slurp_symbol_table): Don't try to read the
|
||||||
version symbols if there aren't any.
|
version symbols if there aren't any.
|
||||||
|
|
||||||
|
@ -5868,7 +5868,14 @@ mips_elf_check_relocs (abfd, info, sec, relocs)
|
|||||||
case R_MIPS_CALL_LO16:
|
case R_MIPS_CALL_LO16:
|
||||||
/* This symbol requires a global offset table entry. */
|
/* 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. */
|
/* Make sure this symbol is output as a dynamic symbol. */
|
||||||
if (h->dynindx == -1)
|
if (h->dynindx == -1)
|
||||||
|
Reference in New Issue
Block a user