* libc/sys/linux/dl/do-lookup.h (FCT): Support symbols with the STT_COMMON type.

This commit is contained in:
Nick Clifton 2007-10-09 16:01:43 +00:00
parent b7bc4cccd6
commit 97f0a0ecf6
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2007-10-09 Nick Clifton <nickc@redhat.com>
* libc/sys/linux/dl/do-lookup.h (FCT): Support symbols with
the STT_COMMON type.
2007-10-09 Ben Elliston <bje@au.ibm.com> 2007-10-09 Ben Elliston <bje@au.ibm.com>
* libm/machine/spu/headers/acosd2.h: Include spu_intrinsics.h * libm/machine/spu/headers/acosd2.h: Include spu_intrinsics.h

View File

@ -83,9 +83,10 @@ FCT (const char *undef_name, unsigned long int hash, const ElfW(Sym) *ref,
(type_class & (sym->st_shndx == SHN_UNDEF))) (type_class & (sym->st_shndx == SHN_UNDEF)))
continue; continue;
if (ELFW(ST_TYPE) (sym->st_info) > STT_FUNC) if (ELFW(ST_TYPE) (sym->st_info) > STT_FUNC
/* Ignore all but STT_NOTYPE, STT_OBJECT and STT_FUNC entries && ELFW(ST_TYPE) (sym->st_info) != STT_COMMON)
since these are no code/data definitions. */ /* Ignore all but STT_NOTYPE, STT_OBJECT, STT_COMMON and
STT_FUNC entries since these are no code/data definitions. */
continue; continue;
if (sym != ref && strcmp (strtab + sym->st_name, undef_name)) if (sym != ref && strcmp (strtab + sym->st_name, undef_name))