summaryrefslogtreecommitdiff
path: root/ldso/ldso/ldso.c
AgeCommit message (Collapse)Author
2002-08-08Patch from Stefan Allius and Edie C. Dost to add SuperHEric Andersen
shared library support. This also adds some cleaner error handling, which I (Erik) then ported over to x86 and arm. In addition Stefan added the following fixes: - in hash.c was the lvalue handling of global library functions wrong. To fix this I had to change the prototype of _dl_find_hash. (==> TIS and ELF spec. Vers. 1.2) - in ldso.c was the order of the .init sections calls wrong. Before we call the initialization code of a library we have to check that all dependend libraries are already initialized. This can easily made by calling it in the revers loading order. For this I added a previous pointer chain. - in ldso.c the ELF magics wasn't checked fo PPC, MIPS and SH architecture
2002-07-02Fixup where locals shadowed globalsEric Andersen
-Erik
2002-05-28Patch from Tobias Anderberg <tobias.anderberg@axis.com> to abstractEric Andersen
out page alignment issues. As we we were assuming 4k pages, which need not be the case...
2002-05-20Fixed MIPS dynamic linker by removing link order dependency bug."Steven J. Hill"
2002-05-09Another mips patch from Steven J. Hill:Eric Andersen
Uh, this patch fixes a few bugs that I overlooked. Shoot, even BusyBox wouldn't work until these are applied. Erik, plop this into CVS please. Thanks.
2002-05-02Patch from Steven J. Hill <sjhill@realitydiluted.com>:Eric Andersen
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!
2002-04-03Steven's patch contained a spare SEND_NUMBER_STDERR call that wasEric Andersen
spamming us. Kill that. My bad for not spotting that when merging. -Erik
2002-04-02Steven J. Hill's latest mips dynamic loader updatesEric Andersen
2002-03-29More mips support from sjhillEric Andersen
2002-03-20Attempt to follow symlinks if possible, and use that directoryEric Andersen
for the base library directory. -Erik
2002-03-19Revert my symlink detecting change for now, since it breaksEric Andersen
things. -Erik
2002-03-19Resolve symlinks when determining the real ld.so path, which isEric Andersen
now used as the default library search location. -Erik
2002-03-17Enable trace support by default, since it only costs 300 bytesEric Andersen
anyways, and people seem to expect it. -Erik
2002-03-08Seperate out the symbol resolution debugging, so it doesn't clutterEric Andersen
things up when we don't care about symbol resolution problems. Make the lib loader always look first in the directory where the shared lib loader was found. -Erik
2002-02-18Whine and exit if people link against GNU libc orEric Andersen
GNU libc linked shared libraries.
2002-02-17Some more updates. Darn -- arm needs the mprotect hackEric Andersen
2002-02-17A few more little fixupsEric Andersen
2002-02-17A ton of cleanups. Eliminate some useless code. Much betterEric Andersen
debugging code now. -Erik
2002-01-23Fixup build a bit. Be sneaky and include everything intoEric Andersen
a single .c file, making stuff be even smaller.
2002-01-14Both _dl_simple_ltoa and _dl_simple_ltoahex use buffers of size 21,Eric Andersen
but we were feeding them strings that were just 13 bytes long... Thanks to spudmonkey@racsa.co.cr for noticing! -Erik
2002-01-11Remove old named file. Fix headers on updated one.Eric Andersen
2001-11-12powerpc/elfinterp.c: Powerpc works now. Major rework; most relocsDavid Schleef
should work now. R_PPC_JMP_SLOT correctly being lazily relocated. hash.h: Added a field in elf_resolve to store a ppc-specific address. boot1.c: Added debugging code. Disabled check that fails on powerpc because the string literal requires a reloc that isn't performed. Added check to ignore d_tag if it is out of bounds, as has been observed with powerpc binaries.
2001-08-11Begin removing some unnecessary inlining, and fix namingEric Andersen
of _dl_fprintf which should really be _dl_dprintf -Erik
2001-08-06If /etc/ld.so.preload was size 0, the shared lib loader wouldEric Andersen
choke and die. Test for non-zero size as well, -Erik
2001-07-17Fix missing function when USE_CACHE is enabledEric Andersen
-Erik
2001-07-13Scrub up a few things I forgot. Add a few more cleanups.Eric Andersen
-Erik
2001-07-13This takes about 6k off the size of the x86 shared lib loader...Eric Andersen
-Erik
2001-07-12Small fixups for powerpcDavid Schleef
2001-07-03Finish up merging the arm port into the main tree.Eric Andersen
2001-06-27Cleanup to not use kernel headers at all.Eric Andersen
-Erik
2001-06-15Make some nice SEND_ADDRESS_STDERR and SEND_NUMBER_STDERR macros thatEric Andersen
operate inline, to help when debugging ldso (i.e. before we can do things like function calls). -Erik
2001-06-14Yet more ldso cleanups. Be more discriminating about when using inlinesEric Andersen
and when using real functions. Make things be more portable by providing a default C routine to locate the got. -Erik
2001-06-07Changes needed to build the ldso dir for m68k. I haven't tested it,David McCullough
who knows if it will work, it just compiles cleanly :-)
2001-06-04Teach the ldso stuff to use the proper elf.h header file, not a local copy.Eric Andersen
-Erik
2001-05-16Oops again. We do want to print this info, but only whenEric Andersen
_dl_trace_loaded_objects is true (i.e. when doing an 'ldd') -Erik
2001-05-16Oops. I left in some debugging noise. Also some minor formatting updates.Eric Andersen
2001-05-10Check if ld.so is included in the NEEDED list. If so, do not _again_Eric Andersen
try to fix up its symbols since they are already fixed up, thank-you very much. This checkin fixes the dlopen problems Manuel noticed. -Erik
2001-05-03Dont segfault when folks run ld-uclibc as an executable.Eric Andersen
2001-05-03Some more minor updates. Add in some debug stuff, andEric Andersen
a way to print out addresses _early_ on in the process.
2001-05-02Some more updates and explanationEric Andersen
2001-05-01Another cleanup. Never pass addresses as an 'int'Eric Andersen
-Erik
2001-05-01Yet another major rework. This time around, rework it to no longerEric Andersen
use linux kernel header files. -Erik
2001-04-27Eliminate the useless _dl_interpreter_exit functionEric Andersen
2001-04-24Disable an ugly bug-workaround for ancient versions of gcc.Eric Andersen
-Erik
2001-04-23Initial checkin for ld.so. This is a combination of effort from Manuel NovoaEric Andersen
III and me. I've been working on stripping out arch dependant stuff and replacing it with generic stuff whenever possible. -Erik