source: patches/eglibc-2.15-r16526-dl_dep_fix-1.patch@ 76b06f6

Last change on this file since 76b06f6 was 76b06f6, checked in by William Harrington <kb0iic@…>, 12 years ago

Prepare for CLFS-2.0.0 release.

  • Property mode set to 100644
File size: 1.1 KB
RevLine 
[76b06f6]1Submitted By: Jonathan Norman (jonathan at bluesquarelinux dot co dot uk)
2Date: 2012-02-26
3Initial Package Version: 2.15 r16526
4Origin: Andreas Schwab
5 Via http://sourceware.org/ml/libc-hacker/2011-02/msg00002.html
6Upstream Status: Unknown, In Bugzilla
7Description: If a ELF binaries dependencies are missing it was causing
8 a signal too early.
9Rediffed by Jonathan Norman for Eglibc 2.15
10
11
12diff -Naur eglibc-2.15.orig/elf/dl-deps.c eglibc-2.15/elf/dl-deps.c
13--- eglibc-2.15.orig/elf/dl-deps.c 2012-02-26 17:15:55.394189832 +0000
14+++ eglibc-2.15/elf/dl-deps.c 2012-02-26 17:21:48.882756229 +0000
15@@ -502,6 +502,10 @@
16 if (errno == 0 && errno_saved != 0)
17 __set_errno (errno_saved);
18
19+ if (errno_reason)
20+ _dl_signal_error (errno_reason == -1 ? 0 : errno_reason, objname,
21+ NULL, errstring);
22+
23 struct link_map **old_l_initfini = NULL;
24 if (map->l_initfini != NULL && map->l_type == lt_loaded)
25 {
26@@ -699,7 +703,4 @@
27 if (old_l_initfini != NULL)
28 map->l_orig_initfini = old_l_initfini;
29
30- if (errno_reason)
31- _dl_signal_error (errno_reason == -1 ? 0 : errno_reason, objname,
32- NULL, errstring);
33 }
Note: See TracBrowser for help on using the repository browser.