]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Revert "Don't crash when dependencies are missing"
authorAndreas Schwab <schwab@redhat.com>
Mon, 21 Mar 2011 14:00:21 +0000 (15:00 +0100)
committerAndreas Schwab <schwab@redhat.com>
Wed, 7 Sep 2011 09:47:10 +0000 (11:47 +0200)
This reverts commit f2092faf2b6bd491a1891d5d5e393a8bf85d01d7.
(cherry picked from commit f55ffe58e9754e54f2de20c67613e8a26a9878df)

ChangeLog
elf/dl-deps.c

index cc3943fc472b48a054871df26f5850c93053926e..823cf21a9bdc027fddb5b6d795566416a3f9842a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-08-22  Andreas Schwab  <schwab@redhat.com>
+
+       * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
+       dependencies back to end of function.
+
 2011-08-16  Andreas Schwab  <schwab@redhat.com>
 
        [BZ #11724]
index cc0023d38172e60cf88ca8d61a338c63bc049a16..7fa4d691c37e7327288663977173d2388ead1d33 100644 (file)
@@ -491,10 +491,6 @@ _dl_map_object_deps (struct link_map *map,
   if (errno == 0 && errno_saved != 0)
     __set_errno (errno_saved);
 
-  if (errno_reason)
-    _dl_signal_error (errno_reason == -1 ? 0 : errno_reason, objname,
-                     NULL, errstring);
-
   struct link_map **old_l_initfini = NULL;
   if (map->l_initfini != NULL && map->l_type == lt_loaded)
     {
@@ -691,4 +687,8 @@ Filters not supported with LD_TRACE_PRELINKING"));
     }
   if (old_l_initfini != NULL)
       map->l_orig_initfini = old_l_initfini;
+
+  if (errno_reason)
+    _dl_signal_error (errno_reason == -1 ? 0 : errno_reason, objname,
+                     NULL, errstring);
 }