summaryrefslogtreecommitdiffstats
path: root/ldso/libdl/libdl.c
Commit message (Collapse)AuthorAgeFilesLines
* Doh! I was returning with an incorrect pointer type when dlopeningEric Andersen2003-10-151-7/+7
| | | | | | already loaded libs, which unsurprisingly would cause dlsym() to not work at all... -Erik
* When someone would dlopen a shared lib that was already opened,Eric Andersen2003-10-091-12/+14
| | | | | | | | | we would try to re-fixup the lib's relocations with rather horrible results. So fix that by checking the the dlopened lib has already had its init functions called, which will never be the case for newly loaded libs, and skip the rest in that case. also apply a few minor fixups
* Fix a problem with dtors/dtors.Eric Andersen2003-09-021-35/+46
|
* I just realized we need global symbol resolution for everything inEric Andersen2003-08-191-61/+5
| | | | | | | | | | | a chain of dependent libraries or libraries that depend on other shared libraries will not work! So with a well placed dyn_chain->flags |= RTLD_GLOBAL; everything is now working perfectly!!! Sweet!!!! This patch also removes some leftover junk from my previous efforts.
* Cool. Found most of the problem. Turns out we were inadvertanly loading someEric Andersen2003-08-191-92/+197
| | | | | | | libraries multiple times, wasting memory and causing different libraries to use different symbol sets, some of which were not properly resolved. Continue scrubbing ld.so and converting it to use proper types.
* Phase one of my evil plan to clean up ld.so...Eric Andersen2003-08-191-71/+20
|
* Run dlopened ctors and dtors in the correct orderEric Andersen2003-06-271-4/+8
|
* doh. I forgot mips can't talk to globals that early on in theEric Andersen2003-03-011-1/+1
| | | | | process. Fix that up too. -Erik
* Fix a potential compile errorEric Andersen2003-02-281-0/+2
|
* If they call dlopen with anything other than RTLD_LAZYEric Andersen2003-01-031-2/+9
| | | | or RTLD_NOW then we need to error out.
* Rework things such that staticly linked applications can useEric Andersen2002-12-121-6/+33
| | | | | | | | dlopen and have it be successful. This required moving some things out of ldso.c into readelflib1.c, and directly including hash.c and readelflib1.c into dlib.c when building the static version of the library. -Erik
* For now, revert Ronald Wahl's change to dlopen. We need toEric Andersen2002-11-151-1/+1
| | | | | look into what is breaking dlclose() further... -Erik
* Ronald Wahl writes:Eric Andersen2002-11-151-0/+1
| | | | | | I noticed that dlclose() does not work since libraries loaded with dlopen are not marked as "loaded_file". This breaks apache with dynamic modules. I append a small fix against uClibc-0.9.16.
* Kill a warning. Patch from Joel Coltoff <joel@wmi.com>Eric Andersen2002-10-161-0/+4
|
* Fixed 'dlopen' call for MIPS. Things seem to work swimingly. Woohoo!"Steven J. Hill"2002-10-151-0/+9
|
* missed const-ifying this one.Eric Andersen2002-08-191-1/+1
|
* For some perverse reason we were not registering destructorsEric Andersen2002-08-081-0/+4
| | | | | for dlopen'd libraries. This fixes that. -Erik
* Move destructor attribute tagEric Andersen2002-08-081-3/+1
|
* Missed a spotEric Andersen2002-08-081-6/+6
| | | | -Erik
* Cleanup to avoid some undefined behaviorEric Andersen2002-08-081-38/+37
| | | | -Erik
* Fix up of '_dlopen' call and removal of unneeded argument in call ↵"Steven J. Hill"2002-06-051-3/+1
| | | | '_dl_load_elf_shared_library'.
* Patch from Tobias Anderberg <tobias.anderberg@axis.com> toEric Andersen2002-05-021-58/+27
| | | | remove the .asm calls
* Patch from Steven J. Hill <sjhill@realitydiluted.com>:Eric Andersen2002-05-021-3/+3
| | | | | | | | | | I am very pleased to announce that the MIPS dynamic linker/loader for uClibc is now working. It works on big and little endian platforms. A few minor changes were needed to avoid breaking ldd, and since this makes some non-trivial changes, I have tested on x86, arm, and powerpc to be sure thoese arches didn't get broken. Excellent work Steven!
* Remove the now obsolete d-link tree. Update things to copeEric Andersen2002-01-111-4/+3
| | | | | with the new naming -Erik
* Begin removing some unnecessary inlining, and fix namingEric Andersen2001-08-111-12/+12
| | | | | of _dl_fprintf which should really be _dl_dprintf -Erik
* This syncs things up with my local tree. Mainly changes installerEric Andersen2001-08-081-11/+39
| | | | | | issues, and syns things (as far as I am willing) with Dave Schleef's tree. We may need to go another round or so, but we do seem to be converging...
* Turn off USE_CACHE by default (so ldconfig, by default, isn'tEric Andersen2001-07-171-5/+5
| | | | | | | needed). Fix a stupid typo in dlib.c where I had several weak symbols set up backwards, breaking libdl (dlopen and friends), -Erik
* Scrub up a few things I forgot. Add a few more cleanups.Eric Andersen2001-07-131-57/+31
| | | | -Erik
* Another cleanup. Never pass addresses as an 'int'Eric Andersen2001-05-011-309/+291
| | | | -Erik
* I forgot to check this in.Eric Andersen2001-05-011-5/+5
| | | | -Erik
* Silence a warningEric Andersen2001-04-241-1/+1
|
* Initial checkin for ld.so. This is a combination of effort from Manuel NovoaEric Andersen2001-04-231-0/+648
III and me. I've been working on stripping out arch dependant stuff and replacing it with generic stuff whenever possible. -Erik