summaryrefslogtreecommitdiff
path: root/libexec
AgeCommit message (Collapse)Author
2005-11-09add RTLD_NOW support to dlopen and propogate -z now to dep libs.Kurt Miller
ok drahn@
2005-11-09the handle returned by dlopen(0,...) should behave the same asKurt Miller
RTLD_DEFAULT, so return RTLD_DEFAULT for handle. ok 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-23Use libc's SYS.h and SYSTRAP instead of rolling own. No binary change.Dale Rahn
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-18This is too useful for debugging to not have in the tree, howeverDale Rahn
the interface may change at any time, so dont depend on it. (ie regress)
2005-10-17Fix possible buffer overflow caused by unknown tags in the rangeMark Kettenis
[DT_LOPROC, DT_HIPROC]. ok kurt@
2005-10-16Consolidate dl_boot and dlopen dep lib loading into new functionKurt Miller
_dl_load_dep_libs. Now both dl_boot and dlopen will randomize dep lib loading, where previously only dl_boot did.
2005-10-14Use queue macros instead of directly accessing fields. ok millert@ pat@Otto Moerbeek
deraadt@
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-05Don't mention kerberos here - it has been disabled for some time.Bjorn Sandell
fine jmc@
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-23avoid a nasty line split;Jason McIntyre
ok deraadt@ ian@
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-16use poll() instead of select(), pr4502, alexander.farber@gmail.comTheo de Raadt
2005-09-16if tokendb_open() failed, do not crash if tokendb_close() is calledTheo de Raadt
2005-09-16Now that the bug requiring it has been fixed, remove the lastchance kludgeDale Rahn
ok kurt@