source: patches/eglibc-2.15-r16526-dl_dep_fix-1.patch@ 6e71d33

clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 6e71d33 was 35e7499, checked in by Jonathan Norman <jon@…>, 13 years ago

Merged with Cosmo-branch, renamed / rediffed patches as required and fixed download links

  • Property mode set to 100644
File size: 1.1 KB
  • elf/dl-deps.c

    Submitted By: Jonathan Norman (jonathan at bluesquarelinux dot co dot uk)
    Date: 2012-02-26
    Initial Package Version: 2.15 r16526
    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.
    Rediffed by Jonathan Norman for Eglibc 2.15
    
    
    diff -Naur eglibc-2.15.orig/elf/dl-deps.c eglibc-2.15/elf/dl-deps.c
    old new  
    502502  if (errno == 0 && errno_saved != 0)
    503503    __set_errno (errno_saved);
    504504
     505  if (errno_reason)
     506    _dl_signal_error (errno_reason == -1 ? 0 : errno_reason, objname,
     507                     NULL, errstring);
     508
    505509  struct link_map **old_l_initfini = NULL;
    506510  if (map->l_initfini != NULL && map->l_type == lt_loaded)
    507511    {
     
    699703  if (old_l_initfini != NULL)
    700704      map->l_orig_initfini = old_l_initfini;
    701705
    702   if (errno_reason)
    703     _dl_signal_error (errno_reason == -1 ? 0 : errno_reason, objname,
    704                       NULL, errstring);
    705706}
Note: See TracBrowser for help on using the repository browser.