summaryrefslogtreecommitdiff
path: root/utils/ldd.c
AgeCommit message (Collapse)Author
2012-11-03ldd: ELFCLASSM was not defined for the Xtensa architectureChris Zankel
Signed-off-by: Chris Zankel <chris@zankel.net>
2012-06-15ldd.c: change syntax, no size and no functional changePeter S. Mazinger
Proposed-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-06-15ldd.c: reduce sizePeter S. Mazinger
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-05-15ldd: tweak whitespaceBernhard Reutner-Fischer
Tweak whitespace in preprocessor conditionals. No obj-code changes. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-05-08ldd: silence warning if !LDSO_LDD_SUPPORTBernhard Reutner-Fischer
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-04-18ldd: silence warningsBernhard Reutner-Fischer
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-10-18ldd: take LD_LIBRARY_PATH into accountCarmelo Amoroso
Extend the environment variables adding the LD_LIBRARY_PATH if actually passed when doing shared library tracings through the ld.so trace capability. This is possible only using the system dynamic linker in stand-alone mode to avoid any vulnerability. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2011-10-06microblaze mmu/elf/shared lib supportRyan Flux
microblaze can either be with mmu or without If with, use elf rather than flat, and support shared libs Signed-off-by: Ryan Flux <ryan.flux@emsolutions.com.au> Signed-off-by: Steve Bennett <steveb@workware.net.au> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-03-30utils/ldd: Check for returned pointer from strrchr not the value it holdsKevin Day
Signed-off-by: Kevin Day <thekevinday@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2010-05-24utils: Fix ldd segfaultNatanael Copa
Fixes ldd segfault on this testcase: extern void _dl_getenv(void); void foo(void) { printf("foo: %x\n", &_dl_getenv); } linked as -shared It fixes bug #1507 Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2009-10-14fix cosmetic typoBernhard Reutner-Fischer
s/dependancies/dependencies/g Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2009-09-05do not pass 3rd param to open() which do not create filesDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-07-05Don't shadow stat with a local variableRon
Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-07-05Make more utility functions staticRon
This keeps gcc-4.4 from nagging that they have no prototypes. Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-02-10include more info in error messages so we have a better idea where things ↵Mike Frysinger
are failing
2009-02-09unify the headers/random defines into porting.h to avoid duplication/rotMike Frysinger
2009-01-10simple optimizations and style fixes in dynamic loadingDenis Vlasenko
text data bss dec hex filename - 16709 240 92 17041 4291 lib/ld-uClibc.so + 16634 236 92 16962 4242 lib/ld-uClibc.so - 4602 344 4 4950 1356 lib/libdl-0.9.30-svn.so + 4571 328 4 4903 1327 lib/libdl-0.9.30-svn.so - 4602 344 4 4950 1356 lib/libdl.so + 4571 328 4 4903 1327 lib/libdl.so
2008-10-29- minor shrinkage (-50b)Bernhard Reutner-Fischer
2008-10-03- use c89-style commentsBernhard Reutner-Fischer
Closes issue #5194
2008-08-27- remove a couple of duplicate includesBernhard Reutner-Fischer
2008-07-23- fix inline keywordBernhard Reutner-Fischer
2008-03-26- fixup stripping of host utils and make host-utils compile with std=gnu99Bernhard Reutner-Fischer
2007-11-16Added AVR32 support to uClibc. Signed-off-by: Hans-Christian Egtvedt ↵Carmelo Amoroso
<hcegtvedt@atmel.com>
2007-04-17cleanup style; no functional changesMike Frysinger
2006-12-12- fix compilation of __LDSO_CACHE_SUPPORT__Bernhard Reutner-Fischer
s/dprintf(2/fprintf(stderr/g
2006-10-07the makefile will include elf.h for us #778Mike Frysinger
2006-07-05replace my @debian.org addr with @uclibc.org. Fixup license onEric Andersen
readelf and ldd to again state that they are GPLv2
2006-02-26remove warning since it seems to have "gone away" nowMike Frysinger
2006-01-22Enable _GNU_SOURCE build wide, trying to get consistent interfaces, else IMA ↵Peter S. Mazinger
is a useless attempt
2005-12-30tell people to ignore these two warnings unless someone can figure out how ↵Mike Frysinger
to make them go away ... the vfork() is safe due to the logic following it
2005-12-30need to make sure elf_find_dynamic(key) is big enough to handle 64bit hostsMike Frysinger
2005-12-29fix signed/unsigned warningsMike Frysinger
2005-12-10Solve warning about redefined _GNU_SOURCE, allow iconv to buildPeter S. Mazinger
2005-12-09touchup styleMike Frysinger
2005-11-24Move _GNU_SOURCE from file to CFLAGS, make use of NATIVE_LDFLAGSPeter S. Mazinger
2005-10-05ldd does not build due to missing fork() on MMUless. Since ldd merelyEric Andersen
does a fork/exec, fork() can be trivially replaced with vfork()
2005-09-22clean 32bit-isms and make code 64/32 bit cleanMike Frysinger
2005-08-18add __thumb__ checkMike Frysinger
2004-10-06Puts common defines into dl-defs.h (in ldso/include) from dl-elf.h andJoakim Tjernlund
dl-cache.h and make use of it. Also disables the lib-path-redundancy check for the case the cache is not used. Makes use of _PRELOAD_FILE_SUPPORT. From Peter Mazinger.
2004-10-05Peter S. Mazinger writes:Joakim Tjernlund
Hello! The attached patches remove unneeded -D<somedefine>, and uses instead #ifdef __somedefine__
2004-10-03This patch from Mike Frysinger, extended from an earlier patch from Peter S.Eric Andersen
Mazinger implements the changes suggested by me on the uclibc list. On Tuesday 28 September 2004 02:24 pm, Erik Andersen wrote: > What I think should be done is > > *) Someone that cares about USE_CACHE should fix that option > up to be sure it works, and give it a proper config entry > in extra/Configs/Config.in, and rename it to something > more appropriate such as LDSO_CACHE_SUPPORT. > > *) When LDSO_CACHE_SUPPORT=n, UCLIBC_RUNTIME_PREFIX /usr/X11R6/lib > should be included in the default library search path in > dl-elf.c, ldd, and ldconfig. > > *) When LDSO_CACHE_SUPPORT=y, UCLIBC_RUNTIME_PREFIX /usr/X11R6/lib > should be excluded from the default library search path in > dl-elf.c, ldd, and ldconfig, and those wishing to include > X11 stuff should add that into /etc/ld.so.conf and re-run > ldconfig. > > *) At present, LDSO_CONF and LDSO_CACHE use the same names > and same structure as glibc. This precludes > LDSO_CACHE_SUPPORT being uses in any sane fashion on a > dial glibc and uClibc system. Just as it was necessary > for use to use a different name for 'libuClibc' rather > than 'libc', and 'ld-uClibc.so.0' rather than > 'ld-linux.so.2' it seems that these configuration files > really ought to be given different names. >
2004-09-28Oops, typo.Joakim Tjernlund
Thanks to Peter Kjellerstedt.
2004-09-28Remove /usr/X11R6/lib from search path.Joakim Tjernlund
Search in UCLIBC_RUNTIME_PREFIX"lib" before UCLIBC_RUNTIME_PREFIX"usr/lib". X11 users should enable USE_CACHE in Rules.mak, add /usr/X11R6/lib to /etc/ld.so.conf and run ldconfig.
2004-09-28Make ldd work for ET_DYN executables. From Peter Mazinger.Joakim Tjernlund
2004-03-18Look in /usr/X11R6/lib as wellEric Andersen
2004-03-08Fix commentEric Andersen
2004-02-13Yet more fixups..Eric Andersen
2004-02-13Done free path if it equals not_foundEric Andersen
Remember to flose an fopened file
2004-02-13Another little touch up to avoid problems...Eric Andersen
2004-02-13A better fix...Eric Andersen