summaryrefslogtreecommitdiffstats
path: root/ldso
Commit message (Collapse)AuthorAgeFilesLines
...
* Initialize strings as pointers instead of arrays.Tobias Anderberg2003-09-192-4/+4
|
* Re-add cris to "define list" when fixing auxvt.Tobias Anderberg2003-09-191-1/+1
|
* Make sure we use the local copy of elf.h, since some systemEric Andersen2003-09-171-6/+9
| | | | versions are insufficient....
* Simplify an expression. Use static const on strings to avoidEric Andersen2003-09-112-12/+10
| | | | a gcc 2.95 compiler problem on powerpc.
* Stefan Allius writes:Eric Andersen2003-09-111-36/+45
| | | | | | | | | Hello, my patch changed the format of the ldso debug output to the same format as on the i386 systems. By Stefan
* Fix cris shared lib loader so it compiles...Eric Andersen2003-09-091-2/+4
|
* Arm needs this to compile with gcc 2.95Eric Andersen2003-09-092-0/+24
|
* cleanup/simplify duplicate handling.Eric Andersen2003-09-022-26/+92
|
* delete some garbage, cleanup duplicate handlingEric Andersen2003-09-021-67/+34
|
* Fix a problem with dtors/dtors.Eric Andersen2003-09-022-70/+92
|
* Weed out duplicates before trying to load libraries.... DelayedEric Andersen2003-08-315-30/+102
| | | | | checking for duplicates and returning an alias if an existing lib is already loaded is still correct for the dlopen case.
* Removed CRIS specific code.Tobias Anderberg2003-08-271-4/+0
|
* Cosmetic changes.Tobias Anderberg2003-08-275-169/+181
|
* Make the mips ld.so debug noise somewhat useful, and less gratuitouslyEric Andersen2003-08-221-35/+129
| | | | | different than all other arches. -Erik
* Remove some mips specific hacks that are no longer needed, and actively breakEric Andersen2003-08-221-31/+13
| | | | | | 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
* Be sure to remove the old ldso.h, since it will screw thingsEric Andersen2003-08-211-1/+1
| | | | up badly if still present...
* I just realized we need global symbol resolution for everything inEric Andersen2003-08-192-122/+10
| | | | | | | | | | | 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.
* More routine cleanupEric Andersen2003-08-191-12/+13
|
* Cool. Found most of the problem. Turns out we were inadvertanly loading someEric Andersen2003-08-1910-281/+501
| | | | | | | 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-1925-437/+928
|
* Only exec child apps if they are elf type ET_EXECEric Andersen2003-07-021-2/+3
|
* oopsEric Andersen2003-06-271-1/+1
|
* Run dlopened ctors and dtors in the correct orderEric Andersen2003-06-272-8/+16
|
* whitespace and debug updatesEric Andersen2003-06-271-42/+46
|
* Be extra careful to memset the correct size, not the size of some randomEric Andersen2003-06-185-43/+37
| | | | | | | 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
* Fix a segfault when used on a library w/o an INTERP program header.Eric Andersen2003-06-161-3/+3
|
* Don't segfault when given things other than a regular file.Eric Andersen2003-06-151-0/+3
| | | | -Erik
* Implement syscall() for powerpc. Fixup syscall code soEric Andersen2003-06-152-16/+18
| | | | | it compiles properly with gcc 3.3. -Erik
* Fix mips so it compiles with gcc 3.3Eric Andersen2003-06-122-60/+60
|
* remove a leftover debug printfEric Andersen2003-03-071-2/+0
|
* Patch from Stefan AlliusEric Andersen2003-03-073-23/+24
| | | | | | | | | | | 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
* Fixup ldd handling of multiple filesEric Andersen2003-03-061-12/+36
|
* Patch from Stefan Allius to make ldd.c compile under SolarisEric Andersen2003-03-041-0/+6
|
* Teach ldd to be a bit more helpful by telling you specificallyEric Andersen2003-03-041-5/+29
| | | | | what the problem library is that is linked vs glibc. -Erik
* Teach ldd to act just the glibc provided one (relying on theEric Andersen2003-03-013-37/+106
| | | | | | | 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
* doh. I forgot mips can't talk to globals that early on in theEric Andersen2003-03-011-13/+13
| | | | process. Fix that up too.
* doh. I forgot mips can't talk to globals that early on in theEric Andersen2003-03-012-2/+2
| | | | | process. Fix that up too. -Erik
* Fix the shared library loader so we can properly debug things like pthreads.Eric Andersen2003-03-015-41/+37
| | | | | | Mips gdb support for pthreads and similar complex stuff is broken, but then it couldn't have worked before either... -Erik
* Fix a potential compile errorEric Andersen2003-02-282-0/+4
|
* Fixup a really stupid and terribly obvious bug that was causingEric Andersen2003-02-261-1/+1
| | | | | the shared lib loader on mips to puke... -Erik
* Add a bunch of additional early debugg messages into the sharedEric Andersen2003-02-261-9/+29
| | | | | | lib loader to make it more obvious what is wrong when things puke early on in the process. -Erik
* Fixup powerpc syscalls to eliminate warnings with gcc-3.2, and fixEric Andersen2003-02-163-21/+20
| | | | some other minor warnings.
* Patch from Stefan Allius to fix a compiler warningEric Andersen2003-02-041-1/+3
|
* The original glibc sysdeps/mips/dl-machine.h source from Kazumoto Kojima wasEric Andersen2003-01-301-3/+3
| | | | | | | | | | | | under the LGPL. I noticed Steven J. Hill has accidentally changed the license to be GPL. Per email with him, change it back to LGPL. Erik Andersen wrote: >I just noticed that uClibc/ldso/ldso/mips/resolve.S is >listed as licensed under the GPL, rather than the LGPL >like the rest of uClibc. Accident? > Yes. Feel free to change it.
* Stefan Allius noticed dlib_pic.o was not using XXFLAGS as it shouldEric Andersen2003-01-281-1/+1
|
* Support having libs in /usr/X11R6/lib by default as wellEric Andersen2003-01-242-0/+2
|
* Ok, people are probably going to hate me for this... This commit changes theEric Andersen2003-01-241-0/+1
| | | | | | | | | | | | | | | type of 'struct stat' and 'struct stat64' so they use consistant types. This change is the result of a bug I found while trying to use GNU tar. The problem was caused by our using kernel types within struct stat and trying to directly compare these values with standard types. Trying an 'if (a < b)' when 'a' is an 'unsigned long' and 'b' is an 'int' leads to very different results then when comparing entities of the same type (i.e. time_t values).... Grumble. Nasty stuff, but I'm glad I got this out of the way now. As a result of this fix, uClibc 0.9.17 will not be binary compatible with earlier releases. I have always warned people this can and will happen. -Erik
* If they call dlopen with anything other than RTLD_LAZYEric Andersen2003-01-032-4/+18
| | | | or RTLD_NOW then we need to error out.
* Rework things such that staticly linked applications can useEric Andersen2002-12-128-144/+337
| | | | | | | | 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
* Change some variable names so we are more consistant with whatEric Andersen2002-12-041-5/+5
| | | | | the linux kernel uses. -Erik