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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since fa0b19c 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
  • elf/dl-deps.c

    Submitted By: Joe Ciccone <jciccone@gmail.com>
    Date: 2011-04-16
    Initial Package Version: 2.13 r13356
    Origin: Andreas Schwab
            Via http://sourceware.org/ml/libc-hacker/2011-02/msg00002.html
    Upstream Status: Unknown, In Bugzilla
    Description: If a ELF binaries dependencies are missing it was causing
                 a signal too early.
    
    diff -Naur eglibc-2.13.orig/elf/dl-deps.c eglibc-2.13/elf/dl-deps.c
    old new  
    491491  if (errno == 0 && errno_saved != 0)
    492492    __set_errno (errno_saved);
    493493
     494  if (errno_reason)
     495    _dl_signal_error (errno_reason == -1 ? 0 : errno_reason, objname,
     496                      NULL, errstring);
     497
    494498  struct link_map **old_l_initfini = NULL;
    495499  if (map->l_initfini != NULL && map->l_type == lt_loaded)
    496500    {
     
    683687    }
    684688  if (old_l_initfini != NULL)
    685689    _dl_scope_free (old_l_initfini);
    686 
    687   if (errno_reason)
    688     _dl_signal_error (errno_reason == -1 ? 0 : errno_reason, objname,
    689                       NULL, errstring);
    690690}
Note: See TracBrowser for help on using the repository browser.