diff options
author | Robin Burchell <robin.burchell@collabora.co.uk> | 2012-07-05 09:21:07 +0200 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2012-07-16 09:51:17 -0700 |
commit | 439fa8ea8c33a7945258dfe84a71ab2665efaa9a (patch) | |
tree | f9e9312620e9d142605257434e495c716f1ef559 /linker | |
parent | 8d7355ac2f19f72e03989aab6b47990a34fd6123 (diff) | |
download | bionic-439fa8ea8c33a7945258dfe84a71ab2665efaa9a.zip bionic-439fa8ea8c33a7945258dfe84a71ab2665efaa9a.tar.gz bionic-439fa8ea8c33a7945258dfe84a71ab2665efaa9a.tar.bz2 |
linker: Use SHN_UNDEF instead of describing what it is trying to do.
Diffstat (limited to 'linker')
-rw-r--r-- | linker/linker.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linker/linker.c b/linker/linker.c index 54fb22b..4bf5dc9 100644 --- a/linker/linker.c +++ b/linker/linker.c @@ -393,8 +393,8 @@ static Elf32_Sym *soinfo_elf_lookup(soinfo *si, unsigned hash, const char *name) switch(ELF32_ST_BIND(s->st_info)){ case STB_GLOBAL: case STB_WEAK: - /* no section == undefined */ - if(s->st_shndx == 0) continue; + if(s->st_shndx == SHN_UNDEF) + continue; TRACE_TYPE(LOOKUP, "%5d FOUND %s in %s (%08x) %d\n", pid, name, si->name, s->st_value, s->st_size); |