summaryrefslogtreecommitdiff
path: root/ldso
AgeCommit message (Collapse)Author
2003-10-09move the test for loading the wrong C library into theEric Andersen
_dl_check_if_named_library_is_loaded function
2003-10-09When someone would dlopen a shared lib that was already opened,Eric Andersen
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
2003-10-04Fix a stupid bug causing 'ldd' output to not contain the fullEric Andersen
path to the target library
2003-09-30Don't forget addend on relocations + minor other fixes.Tobias Anderberg
2003-09-29Fix SUPPORT_LD_DEBUG_EARLY on powerpcEric Andersen
2003-09-19* Partial re-write to match other archs and remove duplicate code.Tobias Anderberg
* Assign insead of add when doing relocations.
2003-09-19Corrected LD_BOOT macroTobias Anderberg
2003-09-19Initialize strings as pointers instead of arrays.Tobias Anderberg
2003-09-19Re-add cris to "define list" when fixing auxvt.Tobias Anderberg
2003-09-17Make sure we use the local copy of elf.h, since some systemEric Andersen
versions are insufficient....
2003-09-11Simplify an expression. Use static const on strings to avoidEric Andersen
a gcc 2.95 compiler problem on powerpc.
2003-09-11Stefan Allius writes:Eric Andersen
Hello, my patch changed the format of the ldso debug output to the same format as on the i386 systems. By Stefan
2003-09-09Fix cris shared lib loader so it compiles...Eric Andersen
2003-09-09Arm needs this to compile with gcc 2.95Eric Andersen
2003-09-02cleanup/simplify duplicate handling.Eric Andersen
2003-09-02delete some garbage, cleanup duplicate handlingEric Andersen
2003-09-02Fix a problem with dtors/dtors.Eric Andersen
2003-08-31Weed out duplicates before trying to load libraries.... DelayedEric Andersen
checking for duplicates and returning an alias if an existing lib is already loaded is still correct for the dlopen case.
2003-08-27Removed CRIS specific code.Tobias Anderberg
2003-08-27Cosmetic changes.Tobias Anderberg
2003-08-22Make the mips ld.so debug noise somewhat useful, and less gratuitouslyEric Andersen
different than all other arches. -Erik
2003-08-22Remove some mips specific hacks that are no longer needed, and actively breakEric Andersen
things, now that I have cleaned up the code to be a bit less horribly messy. With this, the shared lib loader works on mips once again. -Erik
2003-08-21Be sure to remove the old ldso.h, since it will screw thingsEric Andersen
up badly if still present...
2003-08-19I just realized we need global symbol resolution for everything inEric Andersen
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.
2003-08-19More routine cleanupEric Andersen
2003-08-19Cool. Found most of the problem. Turns out we were inadvertanly loading someEric Andersen
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.
2003-08-19Phase one of my evil plan to clean up ld.so...Eric Andersen
2003-07-02Only exec child apps if they are elf type ET_EXECEric Andersen
2003-06-27oopsEric Andersen
2003-06-27Run dlopened ctors and dtors in the correct orderEric Andersen
2003-06-27whitespace and debug updatesEric Andersen
2003-06-18Be extra careful to memset the correct size, not the size of some randomEric Andersen
pointer. Fix printing of '0x0x' in ldd output. Simplify discrimination of libname, so doing things like dlopen("./libfoo.so",RTLD_NOW) with a leading "./" in the path will work as expected. -Erik
2003-06-16Fix a segfault when used on a library w/o an INTERP program header.Eric Andersen
2003-06-15Don't segfault when given things other than a regular file.Eric Andersen
-Erik
2003-06-15Implement syscall() for powerpc. Fixup syscall code soEric Andersen
it compiles properly with gcc 3.3. -Erik
2003-06-12Fix mips so it compiles with gcc 3.3Eric Andersen
2003-03-07remove a leftover debug printfEric Andersen
2003-03-07Patch from Stefan AlliusEric Andersen
the ldd.c wasn't compilable for SuperH due to a missing ELFCLASSM define and the readelf executable was linked with a wrong dynamic linker path. To fix this I removed the --uclibc-use-build-dir. The patch also fixed all the compiler warnings (-Wall -W). Erik made a few additional changes to eliminate unused function arguments and fixup a static variable that was was doing the wrong thing
2003-03-06Fixup ldd handling of multiple filesEric Andersen
2003-03-04Patch from Stefan Allius to make ldd.c compile under SolarisEric Andersen
2003-03-04Teach ldd to be a bit more helpful by telling you specificallyEric Andersen
what the problem library is that is linked vs glibc. -Erik
2003-03-01Teach ldd to act just the glibc provided one (relying on theEric Andersen
shared lib loader to do the work) when it is possible to do so, and only go poking about through the ELF headers when that fails so we can still use 'ldd' on cross compiled stuff. -Erik
2003-03-01doh. I forgot mips can't talk to globals that early on in theEric Andersen
process. Fix that up too.
2003-03-01doh. I forgot mips can't talk to globals that early on in theEric Andersen
process. Fix that up too. -Erik
2003-03-01Fix the shared library loader so we can properly debug things like pthreads.Eric Andersen
Mips gdb support for pthreads and similar complex stuff is broken, but then it couldn't have worked before either... -Erik
2003-02-28Fix a potential compile errorEric Andersen
2003-02-26Fixup a really stupid and terribly obvious bug that was causingEric Andersen
the shared lib loader on mips to puke... -Erik
2003-02-26Add a bunch of additional early debugg messages into the sharedEric Andersen
lib loader to make it more obvious what is wrong when things puke early on in the process. -Erik
2003-02-16Fixup powerpc syscalls to eliminate warnings with gcc-3.2, and fixEric Andersen
some other minor warnings.
2003-02-04Patch from Stefan Allius to fix a compiler warningEric Andersen