(elf_machine_rela): Check that the symbol was found.

This commit is contained in:
Ulrich Drepper 1997-06-21 02:08:10 +00:00
parent 6af245e27b
commit c96df8ef30
1 changed files with 4 additions and 0 deletions

View File

@ -227,6 +227,10 @@ elf_machine_rela (struct link_map *map, const Elf32_Rela *reloc,
switch (ELF32_R_TYPE (reloc->r_info))
{
case R_68K_COPY:
if (sym == NULL)
/* This can happen in trace mode if an object could not be
found. */
break;
if (sym->st_size > refsym->st_size
|| (_dl_verbose && sym->st_size < refsym->st_size))
{