source: patches/eglibc-2.13-r13356-dl_dep_fix-1.patch@ f14f7c2

Last change on this file since f14f7c2 was 7d97f36, checked in by Joe Ciccone <jciccone@…>, 14 years ago

Add a patch to EGLIBC that fixes an issue with elf missing deps.

  • Property mode set to 100644
File size: 1.1 KB
RevLine 
[7d97f36]1Submitted By: Joe Ciccone <jciccone@gmail.com>
2Date: 2011-04-16
3Initial Package Version: 2.13 r13356
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.
9
10diff -Naur eglibc-2.13.orig/elf/dl-deps.c eglibc-2.13/elf/dl-deps.c
11--- eglibc-2.13.orig/elf/dl-deps.c 2011-02-04 22:31:21.000000000 +0000
12+++ eglibc-2.13/elf/dl-deps.c 2011-04-16 23:44:34.479218974 +0000
13@@ -491,6 +491,10 @@
14 if (errno == 0 && errno_saved != 0)
15 __set_errno (errno_saved);
16
17+ if (errno_reason)
18+ _dl_signal_error (errno_reason == -1 ? 0 : errno_reason, objname,
19+ NULL, errstring);
20+
21 struct link_map **old_l_initfini = NULL;
22 if (map->l_initfini != NULL && map->l_type == lt_loaded)
23 {
24@@ -683,8 +687,4 @@
25 }
26 if (old_l_initfini != NULL)
27 _dl_scope_free (old_l_initfini);
28-
29- if (errno_reason)
30- _dl_signal_error (errno_reason == -1 ? 0 : errno_reason, objname,
31- NULL, errstring);
32 }
Note: See TracBrowser for help on using the repository browser.