OSDN Git Service

* libc/sys/linux/dl/do-lookup.h (FCT): Support symbols with the STT_COMMON type.
authornickc <nickc>
Tue, 9 Oct 2007 16:01:42 +0000 (16:01 +0000)
committernickc <nickc>
Tue, 9 Oct 2007 16:01:42 +0000 (16:01 +0000)
newlib/ChangeLog
newlib/libc/sys/linux/dl/do-lookup.h

index c9456fe..56c2e40 100644 (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>
 
        * libm/machine/spu/headers/acosd2.h: Include spu_intrinsics.h
index b9364b9..37718ce 100644 (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)))
            continue;
 
-         if (ELFW(ST_TYPE) (sym->st_info) > STT_FUNC)
-           /* Ignore all but STT_NOTYPE, STT_OBJECT and STT_FUNC entries
-              since these are no code/data definitions.  */
+         if (ELFW(ST_TYPE) (sym->st_info) > STT_FUNC
+             && ELFW(ST_TYPE) (sym->st_info) != STT_COMMON)
+           /* Ignore all but STT_NOTYPE, STT_OBJECT, STT_COMMON and
+              STT_FUNC entries since these are no code/data definitions.  */
            continue;
 
          if (sym != ref && strcmp (strtab + sym->st_name, undef_name))