summaryrefslogtreecommitdiff
path: root/ldso/ldso
AgeCommit message (Collapse)Author
2001-12-19Update my email address. I am no longer andersen@lineo.comEric Andersen
2001-11-26Fix buggy R_PPC_RELATIVE relocation. Symptom was that stringsDavid Schleef
internal to a library were not relocated correctly, specifically sys_errlist[].
2001-11-26Fix calculation of PLT entry index. Caused segfaults on second callDavid Schleef
of a lib function.
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-11Fix the library searching routine so it is way simpler, and soEric Andersen
it matches the routine in ldd.c
2001-08-11Begin removing some unnecessary inlining, and fix namingEric Andersen
of _dl_fprintf which should really be _dl_dprintf -Erik
2001-08-08This syncs things up with my local tree. Mainly changes installerEric Andersen
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...
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-17Turn off USE_CACHE by default (so ldconfig, by default, isn'tEric Andersen
needed). Fix a stupid typo in dlib.c where I had several weak symbols set up backwards, breaking libdl (dlopen and friends), -Erik
2001-07-17Fix missing function when USE_CACHE is enabledEric Andersen
-Erik
2001-07-17Oops. USE_CACHE was disabled and didn't compile when enabledEric Andersen
since I'd forgotten a one liner... -Erik
2001-07-17Forgot this...Eric Andersen
2001-07-17Some cleanups needed for things to compile and work as expectedEric Andersen
with the new build system... -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-12This commit merges David Schleef's updates to the build system, which aEric Andersen
few tiny fixups here and there from me. Seems to work just fine and will hopefully be a bit better behaved. -Erik
2001-07-12Added #ifdef DEBUG where appropriate.David Schleef
Fixed icache clearing during _dl_init_got(). Added a few more reloc types. Added out-of-range check for R_PPC_REL24.
2001-07-12First cut of PowerPC port. It works for hello world, but has lotsDavid Schleef
of debugging information is still there.
2001-07-12Small fixups for powerpcDavid Schleef
2001-07-03Finish up merging the arm port into the main tree.Eric Andersen
2001-07-03Merge the arm port into the main tree. The final version (the one thatEric Andersen
actually works) is the most excellent work of Shane Nay <shane@minirl.com>, who took what I had been doing and fixed it.
2001-07-03Merge arm support into the mainstream. This change is prettyEric Andersen
minor, just carefully memset 0 strings before using them, and also referencs strings via the GOT for ARM as well. -Erik
2001-07-03Scrub a couple of intsEric Andersen
2001-07-03Allow the shared lib loader to fallback on the builddir if everythingEric Andersen
else fails. Let <arch>-uclibc-gcc --uclibc-use-build-dir set the shared lib loader to the one in the builddir's path. -Erik
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-15Now that our compiler wrapper is up to it, we can now use TARGET_CCEric Andersen
to compile ldso, simplifying the process of passing in special CFLAGS and such (and simplifying the build in general since we no longer need to go directly to LD to link things). -Erik
2001-06-14Some silly grammar stuffEric Andersen
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-13Use sys/mman.h not asm/mman.h -- we don't want kernel headers...Eric Andersen
-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-31Removed INSTALL_DIR and replaced it with DEVEL_PREFIX, ROOT_DIR, andManuel Novoa III
TARGET_PREFIX to allow more flexibility. Also modified the gcc wrapper to do the right thing if -Wl,--dynamic-linker,xxx is passed on the command line. The gcc wrapper will also check the env variable UCLIBC_GCC_LDOPT for a dynamic linker option at runtime (although command line arg overrides the env variable).
2001-05-25One last structural change. Install header files to INSTALLDIR/usr/includeEric Andersen
so we now parallel the behavior of the standard tools. Also make sure we check INSTALLDIR/lib and INSTALLDIR/usr/lib for libraries. -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-12Ok, this should finish off my massive ro-organization. The sourceEric Andersen
tree is less messy now (which helps), all libraries are placed into uClibc/lib when compiling, all libraries now use a consistant mechanism for being built, all libraries use a consistant naming scheme where the lib name includes the uClibc version number, which makes ldconfig happy and willing to work with us. -Erik
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-10Fix up naming of ld.so so every uses the same define. The top levelEric Andersen
was using one name and the ld.so-1 dir was using another (they happened to be the same). Fix that. -Erik
2001-05-10minor formatting cleanupsEric Andersen
2001-05-10Add in _dl_strrchrEric Andersen
2001-05-08Make sure types are pulled inEric Andersen
2001-05-08Some very minor cleanupsEric Andersen
2001-05-07Put in but leave commented the DL_DEBUG defineEric Andersen
2001-05-03Dont segfault when folks run ld-uclibc as an executable.Eric Andersen
2001-05-03Describe what this routine is supposed to do so we can port itEric Andersen
to other achitectures.
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