summaryrefslogtreecommitdiff
path: root/libexec/ld.so/library_subr.c
AgeCommit message (Collapse)Author
2013-03-20- Parse colon separated paths into NULL terminated arrays of stringKurt Miller
pointers to prepare for adding rpath ORIGIN support. okay matthew@ millert@
2012-03-21Switch ld.so's _dl_opendir functions to use a locally definedMatthew Dempsky
_dl_dirdesc struct (containing just the fields ld.so's implementation actually needs) instead of reusing libc's _dirdesc struct. Also, switch ldconfig to use futimens() instead of futimes(). ok deraadt@
2011-11-28Add support for getting some flags from DT_FLAGS_1: new flagsPhilip Guenthe
DF_1_NODELETE and DF_1_INITFIRST, as well as DF_1_NOW and DF_1_GLOBAL. Committing for kurt@ who worked out the final version; ok guenther@ drahn@
2011-07-13Delete items on grpreflist when walking them to decrement the count,Dale Rahn
otherwise double decrement can occur. ok kurt@ timeout on other reviewers.
2010-11-16Fix error message when ld.so ends up loading a different than expectedDale Rahn
library, but other library needs the one loaded. mostly ok kurt@
2010-10-25Search loaded libs first and add support for SONAME matching. ok drahn@Kurt Miller
2010-07-01When generating grpsym lists, avoid duplicates without searching theDale Rahn
already generated list. Speeds up startup on deeply nested dlopen binaries. ok guenther@, tested by ckuethe@ and ajacoutot@
2010-05-09use _dl_memset() instead of bzero() here. Unbreaks sparc build.Matthieu Herrb
ok kettenis@
2010-05-01bzero a struct to appease gcc4.Jonathan Gray
ok drahn@
2008-04-11Correct a bug where _dl_error was set to DL_NOT_FOUND when a shared libKurt Miller
was found but failed to load. Adjust _dl_load_shlib() to only attempt to load the first matching shared lib which allows the correct _dl_error to propagate out upon load failure. okay drahn@
2006-12-23Spelling.Kenneth R Westerback
'preceeding' -> 'preceding' 'preceeds' -> 'precedes' 'preceeded' -> 'preceded'
2006-05-08more spacingTheo de Raadt
2006-05-08de-spaceTheo de Raadt
2005-11-15correct opencount decrement in _dl_unload_dlopen. was leaving functionKurt Miller
with -1 as opencount and interfeering with dtors. problem reported by espie@. okay drahn@
2005-11-02allow shlibs with paths to use shlib version matching rules too.Kurt Miller
previously shlibs with paths would only open an exact match. initial diff from dale. ok drahn@
2005-10-21using _dl_link_grpsym to increment refcounts made _dl_notify_unload_shlibKurt Miller
simpler, however it broke ldd refcount output. use _dl_link_child to increment refcounts and adjust _dl_notify_unload_shlib to match. work by drahn@ and myself. ok drahn@
2005-10-12Split grpsym_list creation away from child_list creation and changeKurt Miller
grpsym_list order to match Sun's docs. Also corrects bugs where grpsym_list was either not created or partially created.
2005-10-09fix incomplete ref count check in _dl_link_dlopen (use macro now).Kurt Miller
2005-10-09introduce object ref count macros (suggested by dale). no functionalKurt Miller
change.
2005-10-07rename dload_list to grpsym_list which better represents its usage.Kurt Miller
2005-10-06separate load group references from dep lib child/dload lists. move loadKurt Miller
group refs to own per object ref counter (grprefcount) and list (grpref_list). corrects more complex load group ref cases and side effects from initial implementation. design ideas and ok drahn@
2005-10-05move opencount increment and dups check to _dl_link_dlopen. fixes cleanupKurt Miller
of partially dlopened (but failed) cleanup.
2005-10-03refcount corrections: count common dep libs once and centralize dep libKurt Miller
refcount increments to _dl_link_sub. adjust _dl_notify_unload_shlib to match new refcount method. ok drahn@
2005-10-01handle references to load groups caused by dlopen()ing of depenantDale Rahn
members of the load group. work by kurt@ and myself
2005-09-28fix a use after free and let exit clean up instead. ok drahn@Kurt Miller
2005-09-28remove _dl_exiting dead codeKurt Miller
2005-09-28keep track of opencounts for dlopened objects, so that theyDale Rahn
get unloaded the right number of times on exit.
2005-09-22knf; ok drahnTheo de Raadt
2005-09-19simplify code by putting executable in misnamed _dlopened_child_list,Dale Rahn
also move RTLD_NEXT/RTLD_SELF code into that code, it is a single test. okay kurt@
2005-09-17refactor this code, much more readable, no operational change.Dale Rahn
2005-09-17Respect main program's rpath for dependancies of dynamic libraries.Dale Rahn
2005-09-16Rework symbol lookup to more closely match sun's documentation, nowDale Rahn
treats dlopens as load groups. ok kurt@
2005-05-23fixes for dlclose, ok kettenis@Dale Rahn
2005-05-10Recommit the destructor order fix, now that the amd64 bug was fixed.Dale Rahn
'no problem' pval@
2005-04-06backout -- breaks at least amd64; spotted by marcTheo de Raadt
2005-04-05Do a better job of running destructors in the right order.Dale Rahn
2005-03-23Code reorganization, move copied code in library.c and library_mquery.cDale Rahn
into its own file. no functional change.