summaryrefslogtreecommitdiff
path: root/libexec/ld.so
AgeCommit message (Collapse)Author
2005-10-12add missing grpref unload propogation (sync with library_mquery)Kurt Miller
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-10set _dl_loading_object to NULL upon entering and exiting _dl_boot andKurt Miller
dlopen and cleanup of related redundant code. looks fine drahn@
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-06remove dep_next "shadow object" dead code.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-03check opencount after handle has been verified to avoid a possible useKurt Miller
after free.
2005-10-03protect against errant programs that attempt to dlclose a handle that isKurt Miller
already closed (but still around due to refs).
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-28correct last commit, in both files.Dale Rahn
2005-09-28fix a use after free and let exit clean up instead. ok drahn@Kurt Miller
2005-09-28keep a state flag if a library has been unloaded, and then free the listDale Rahn
seperately ok kurt@
2005-09-28remove _dl_exiting dead codeKurt Miller
2005-09-28If there is some compilation error/warning in ld.so do not allow it toDale Rahn
build, ld.so is too fragile and destructive otherwise.
2005-09-28keep track of opencounts for dlopened objects, so that theyDale Rahn
get unloaded the right number of times on exit.
2005-09-28use the calling object's handle for dlsym(RTLD_DEFAULT,...). makes symbolsKurt Miller
in the calling object's load group visable.
2005-09-27increment refcount when opening a lib that is already open (dev/inodeKurt Miller
case) ok drahn@
2005-09-26Fully unload dependant libraries, fixes gphoto2 bug.Dale Rahn
2005-09-23sigh. againDale Rahn
2005-09-22Track if symbols are searched but missing while resolving GOT, ifDale Rahn
any are missing exit instead of later causing an abort, ok kurt@
2005-09-22missed a NOWARN -> WARN changeDale Rahn
2005-09-22knf; ok drahnTheo de Raadt
2005-09-22Use std missing symbol print instead of MD custom, do not warn on weakDale Rahn
undefined symbols, or count them as failures. inspired kurt@
2005-09-21Simplify the internal symbol finding API, with some cleanup, prep forDale Rahn
next step. ok kurt@
2005-09-21Fix bug if object search is not the object where dlsym() finds an object.Dale Rahn
2005-09-19stop searching after first matching symbol is found. okay drahn@Kurt Miller
2005-09-19don't promote DT_NEEDED libs to RTLD_GLOBAL by default when dlopeningKurt Miller
libs. okay drahn@
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-17Cleanly handle the case where a dynamic object is opened, but one of it'sDale Rahn
dependant libraries is missing. return NULL for a handle instead of causing the program to exit.
2005-09-17Respect main program's rpath for dependancies of dynamic libraries.Dale Rahn
2005-09-17spacingTheo de Raadt
2005-09-16Now that the bug requiring it has been fixed, remove the lastchance kludgeDale Rahn
ok kurt@
2005-09-16revert the debug enable.Dale Rahn
2005-09-16Rework symbol lookup to more closely match sun's documentation, nowDale Rahn
treats dlopens as load groups. ok kurt@
2005-09-13Only return a _dl_md_plabel() if the object is a function, do not indirectDale Rahn
a data reference. sigh.
2005-08-16Missing .Pp in -compact listTom Cosgrove
ok jmc@
2005-06-16remove whiteout stuff from ld.so's private opendir(); OK deraadt@Todd C. Miller
2005-05-31removed unused var, pointed out by wilfried@Dale Rahn
2005-05-30unload is not to be recursive anymore, previous diff change method butDale Rahn
this code was missed, fixes issue seen by tedu and millert hopefully php too.
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-05-04%rsi is not callee save, use source register that is saved across callDale Rahn
This also allows propolice to be enabled in ld.so for amd64 ok marco@ weingart@
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.