1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-18 17:24:29 +03:00

(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

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))
{