linker: Use SHN_UNDEF instead of describing what it is trying to do.

This commit is contained in:
Robin Burchell 2012-07-05 09:21:07 +02:00 committed by Elliott Hughes
parent 8d7355ac2f
commit 439fa8ea8c

View File

@ -393,8 +393,8 @@ static Elf32_Sym *soinfo_elf_lookup(soinfo *si, unsigned hash, const char *name)
switch(ELF32_ST_BIND(s->st_info)){ switch(ELF32_ST_BIND(s->st_info)){
case STB_GLOBAL: case STB_GLOBAL:
case STB_WEAK: case STB_WEAK:
/* no section == undefined */ if(s->st_shndx == SHN_UNDEF)
if(s->st_shndx == 0) continue; continue;
TRACE_TYPE(LOOKUP, "%5d FOUND %s in %s (%08x) %d\n", pid, TRACE_TYPE(LOOKUP, "%5d FOUND %s in %s (%08x) %d\n", pid,
name, si->name, s->st_value, s->st_size); name, si->name, s->st_value, s->st_size);