• R
    fix lots of breakage on dlopen, mostly with explicit pathnames · 0420b874
    Rich Felker 提交于
    most importantly, the name for such libs was being set from an
    uninitialized buffer. also, shortname always had an initial '/'
    character, making it useless for looking up already-loaded libraries
    by name, and thus causing repeated searches through the library path.
    
    major changes now:
    
    - shortname is the base name for library lookups with no explicit
      pathname. it's initially clear for libraries loaded with an explicit
      pathname (and for the main program), but will be set if the same
      library (detected via inodes match) is later found by a search.
    
    - exact name match is never used to identify libraries loaded with an
      explicit pathname. in this case, there's no explicit search, so we
      can just stat the file and check for inode match.
    0420b874
dynlink.c 21.1 KB