commit | 439fa8ea8c33a7945258dfe84a71ab2665efaa9a | [log] [tgz] |
---|---|---|
author | Robin Burchell <robin.burchell@collabora.co.uk> | Thu Jul 05 09:21:07 2012 +0200 |
committer | Elliott Hughes <enh@google.com> | Mon Jul 16 09:51:17 2012 -0700 |
tree | f9e9312620e9d142605257434e495c716f1ef559 | |
parent | 8d7355ac2f19f72e03989aab6b47990a34fd6123 [diff] [blame] |
linker: Use SHN_UNDEF instead of describing what it is trying to do.
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 @@ 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);