diff options
| author | Min-su, Kim <min-su.kim@windriver.com> | 2010-01-19 10:05:33 +0900 |
|---|---|---|
| committer | Bruce Beare <brucex.j.beare@intel.com> | 2010-03-29 15:43:09 -0700 |
| commit | 3cab22c8cf0dcf30718a1452ce9cbb637876cea3 (patch) | |
| tree | 119a7ffa38d392147813a75a6af3247dd688917a /linker/linker.c | |
| parent | 58f0326362ca0f5fc17cbc19fd9217cabf0d93dd (diff) | |
| download | bionic-3cab22c8cf0dcf30718a1452ce9cbb637876cea3.zip bionic-3cab22c8cf0dcf30718a1452ce9cbb637876cea3.tar.gz bionic-3cab22c8cf0dcf30718a1452ce9cbb637876cea3.tar.bz2 | |
linker: fix the undefined weak symbols issue
Diffstat (limited to 'linker/linker.c')
| -rw-r--r-- | linker/linker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linker/linker.c b/linker/linker.c index f5294d9..87fb19b 100644 --- a/linker/linker.c +++ b/linker/linker.c @@ -471,7 +471,7 @@ _do_lookup(soinfo *si, const char *name, unsigned *base) DEBUG("%5d %s: looking up %s in %s\n", pid, si->name, name, lsi->name); s = _do_lookup_in_so(lsi, name, &elf_hash); - if(s != NULL) + if ((s != NULL) && (s->st_shndx != SHN_UNDEF)) goto done; } } |
