]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Don't crash on unresolved weak symbol reference when auditing.
authorUlrich Drepper <drepper@redhat.com>
Sat, 22 May 2010 06:51:18 +0000 (23:51 -0700)
committerAndreas Schwab <schwab@redhat.com>
Tue, 1 Jun 2010 07:54:07 +0000 (09:54 +0200)
(cherry picked from commit b32b8b451b398ebae33d4cf8039c03f4d615c0c3)

ChangeLog
elf/dl-runtime.c

index a93e2a2f4ccdc881f1f9cc84bbfa69f7c8dfcdff..55f1145d19263b029521f8568a55165c118d48c5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-05-21  Ulrich Drepper  <drepper@redhat.com>
+
+       * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
+       symbol reference.
+
 2010-05-19  Andreas Schwab  <schwab@redhat.com>
 
        * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
index 181af7dfac64122b80839c6be48c2a2f8d798185..6847edafc6940e849e1bc340163e150e901fc6af 100644 (file)
@@ -232,8 +232,9 @@ _dl_profile_fixup (
                                       ? LOOKUP_VALUE_ADDRESS (result)
                                         + defsym->st_value : 0);
 
-         if (__builtin_expect (ELFW(ST_TYPE) (defsym->st_info)
-                               == STT_GNU_IFUNC, 0))
+         if (defsym != NULL
+             && __builtin_expect (ELFW(ST_TYPE) (defsym->st_info)
+                                  == STT_GNU_IFUNC, 0))
            value = ((DL_FIXUP_VALUE_TYPE (*) (void))
                     DL_FIXUP_VALUE_ADDR (value)) ();
        }