(elf_machine_rel): Print warning about changed size in copy relocation

only if symbol in shared object is larger or _dl_verbose is nonzero.
This commit is contained in:
Ulrich Drepper 1997-05-25 01:07:16 +00:00
parent a10ff2ea76
commit b5fba1adf7

View File

@ -227,7 +227,8 @@ elf_machine_rela (struct link_map *map, const Elf32_Rela *reloc,
switch (ELF32_R_TYPE (reloc->r_info))
{
case R_68K_COPY:
if (sym->st_size != refsym->st_size)
if (sym->st_size > refsym->st_size
|| (_dl_verbose && sym->st_size < refsym->st_size))
{
const char *strtab;