summaryrefslogtreecommitdiff
path: root/ldso
AgeCommit message (Collapse)Author
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-27elide some debug noiseEric Andersen
2001-08-18Fix problem with possible redundant entries.Eric Andersen
2001-08-17Fix a stupid bug causing the ld-uClibc entry to be lost.Eric Andersen
2001-08-11Sync up ldd behaviorEric Andersen
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-10Update the build system, yet again. I hope this is the last time...Eric Andersen
Here is the basic theory of operation: SHARED_LIB_LOADER_PATH/ <The location where the shared lib loader will be installed and where the compiler will cause apps to look for it.> DEVEL_PREFIX/ bin/ <contains gcc, ld, etc for setting PATH=$DEVEL_PREFIX/bin:$PATH> lib/ <contains all runtime and static libs> include/ <Where all the header files go> SYSTEM_DEVEL_PREFIX/ usr/bin/ <contains arch-uclibc-gcc, arch-uclibc-ld, etc that might be installed by a .deb or .rpm into /usr/bin, but can happily live under DEVEL_PREFIX> PREFIX This is prepended during 'make install's allowing you to shift things to be installed under some alternate location (such as when building a .deb) -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-06Try search for the shared lib interpreter. Eliminate all double "//"sEric Andersen
from the output -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-17search_for_named_library forgot to wipe the target string, so each timeEric Andersen
around the loop it was getting bigger...
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-11Rewrite of ldd so it works as expected, and does not invoke theEric Andersen
shared lib loader at all. This will allow us to throw out the support code for that from ld-linux.so.0 -Erik
2001-07-10Fix the code for finding the interpreter, which was I hadEric Andersen
totally screwed up the first time... -Erik
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-07-03Force our child libs to link vs libcEric Andersen
2001-06-27Cleanup to not use kernel headers at all.Eric Andersen
-Erik
2001-06-18This commit finishes adding support for the old m68k-coff toolchains byEric Andersen
working around a missing header file in the compiler shipped with the uCsimm and uCdimm. This should make the folk in Toronto happy, since now they can use the latest CVS version of uClibc. -Erik
2001-06-15A few build updatesEric Andersen
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-15Be consistant for all the client code, and use TARGET_CC with ↵Eric Andersen
--uclibc-use-build-dir
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-11Get rid of the unused LDSO_VERSIONEric Andersen
2001-06-11Fix bug in ldso/util/Makefile introduced when Erik added the readelf app.Manuel Novoa III
It didn't show up if a previous install was done. This would have been fixed two days ago if the initial bug report had been anything close to lucid. :-( Also changed ldconfig back to staticly linked and update the README file.
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-07ldso build always used $(NATIVE_ARCH)-uClibc-gcc, which doesn't work forDavid McCullough
cross build (ie., m68k under i386). Changed it to use $(TARGET_ARCH) instead.
2001-06-04Add a new 'readelf' util I wrote this weekend.Eric Andersen
-Erik
2001-06-04Teach the ldso stuff to use the proper elf.h header file, not a local copy.Eric Andersen
-Erik
2001-06-02Always check before you commit...^100. We need to build the dynamic linkerManuel Novoa III
before we build shared libc. We need to build shared libc before libdl.
2001-06-02Only build ldso if building shared. Also, if building ldso, build all subdirs.Manuel Novoa III
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).