diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-10-05 21:25:32 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-10-05 21:25:32 +0000 |
commit | 0304f168cec7923e2ed1ccf67a0e79ec960318bb (patch) | |
tree | fc989b274800f1491b7b024e1de56e457b471d64 /elf | |
parent | a83b5649c561758f914a4e393c42fbb595852cf7 (diff) | |
download | glibc-0304f168cec7923e2ed1ccf67a0e79ec960318bb.tar.gz glibc-0304f168cec7923e2ed1ccf67a0e79ec960318bb.tar.xz glibc-0304f168cec7923e2ed1ccf67a0e79ec960318bb.zip |
[BZ #5104]
* elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
Diffstat (limited to 'elf')
-rw-r--r-- | elf/do-lookup.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/elf/do-lookup.h b/elf/do-lookup.h index e17d463526..ebb9ed5b47 100644 --- a/elf/do-lookup.h +++ b/elf/do-lookup.h @@ -87,8 +87,9 @@ do_lookup_x (const char *undef_name, uint_fast32_t new_hash, return NULL; if (__builtin_expect (ELFW(ST_TYPE) (sym->st_info) > STT_FUNC + && ELFW(ST_TYPE) (sym->st_info) != STT_COMMON && ELFW(ST_TYPE) (sym->st_info) != STT_TLS, 0)) - /* Ignore all but STT_NOTYPE, STT_OBJECT and STT_FUNC + /* Ignore all but STT_NOTYPE, STT_OBJECT, STT_FUNC, and STT_COMMON entries (and STT_TLS if TLS is supported) since these are no code/data definitions. */ return NULL; |