diff options
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; |