summaryrefslogtreecommitdiff
path: root/libexec/ld.so/library_subr.c
AgeCommit message (Collapse)Author
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.