summaryrefslogtreecommitdiffstats
path: root/utils/ldd.c
Commit message (Collapse)AuthorAgeFilesLines
* utils/ldd: Check for returned pointer from strrchr not the value it holdsKevin Day2011-03-301-1/+1
| | | | | Signed-off-by: Kevin Day <thekevinday@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* utils: Fix ldd segfaultNatanael Copa2010-05-241-1/+1
| | | | | | | | | | | | | | | | | 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>
* fix cosmetic typoBernhard Reutner-Fischer2009-10-141-3/+3
| | | | | | s/dependancies/dependencies/g Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* do not pass 3rd param to open() which do not create filesDenys Vlasenko2009-09-051-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Don't shadow stat with a local variableRon2009-07-051-2/+2
| | | | | Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Make more utility functions staticRon2009-07-051-6/+6
| | | | | | | 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>
* include more info in error messages so we have a better idea where things ↵Mike Frysinger2009-02-101-3/+3
| | | | are failing
* unify the headers/random defines into porting.h to avoid duplication/rotMike Frysinger2009-02-091-34/+10
|
* simple optimizations and style fixes in dynamic loadingDenis Vlasenko2009-01-101-12/+8
| | | | | | | | | | | 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
* - minor shrinkage (-50b)Bernhard Reutner-Fischer2008-10-291-8/+8
|
* - use c89-style commentsBernhard Reutner-Fischer2008-10-031-4/+4
| | | | Closes issue #5194
* - remove a couple of duplicate includesBernhard Reutner-Fischer2008-08-271-1/+0
|
* - fix inline keywordBernhard Reutner-Fischer2008-07-231-4/+4
|
* - fixup stripping of host utils and make host-utils compile with std=gnu99Bernhard Reutner-Fischer2008-03-261-6/+6
|
* Added AVR32 support to uClibc. Signed-off-by: Hans-Christian Egtvedt ↵Carmelo Amoroso2007-11-161-0/+5
| | | | <hcegtvedt@atmel.com>
* cleanup style; no functional changesMike Frysinger2007-04-171-106/+104
|
* - fix compilation of __LDSO_CACHE_SUPPORT__Bernhard Reutner-Fischer2006-12-121-4/+4
| | | | s/dprintf(2/fprintf(stderr/g
* the makefile will include elf.h for us #778Mike Frysinger2006-10-071-1/+1
|
* replace my @debian.org addr with @uclibc.org. Fixup license onEric Andersen2006-07-051-15/+2
| | | | readelf and ldd to again state that they are GPLv2
* remove warning since it seems to have "gone away" nowMike Frysinger2006-02-261-0/+2
|
* Enable _GNU_SOURCE build wide, trying to get consistent interfaces, else IMA ↵Peter S. Mazinger2006-01-221-3/+0
| | | | is a useless attempt
* tell people to ignore these two warnings unless someone can figure out how ↵Mike Frysinger2005-12-301-0/+1
| | | | to make them go away ... the vfork() is safe due to the logic following it
* need to make sure elf_find_dynamic(key) is big enough to handle 64bit hostsMike Frysinger2005-12-301-1/+1
|
* fix signed/unsigned warningsMike Frysinger2005-12-291-2/+2
|
* Solve warning about redefined _GNU_SOURCE, allow iconv to buildPeter S. Mazinger2005-12-101-1/+3
|
* touchup styleMike Frysinger2005-12-091-18/+23
|
* Move _GNU_SOURCE from file to CFLAGS, make use of NATIVE_LDFLAGSPeter S. Mazinger2005-11-241-2/+0
|
* ldd does not build due to missing fork() on MMUless. Since ldd merelyEric Andersen2005-10-051-1/+1
| | | | does a fork/exec, fork() can be trivially replaced with vfork()
* clean 32bit-isms and make code 64/32 bit cleanMike Frysinger2005-09-221-65/+113
|
* add __thumb__ checkMike Frysinger2005-08-181-1/+1
|
* Puts common defines into dl-defs.h (in ldso/include) from dl-elf.h andJoakim Tjernlund2004-10-061-2/+2
| | | | | | 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.
* Peter S. Mazinger writes:Joakim Tjernlund2004-10-051-1/+1
| | | | | | | Hello! The attached patches remove unneeded -D<somedefine>, and uses instead #ifdef __somedefine__
* This patch from Mike Frysinger, extended from an earlier patch from Peter S.Eric Andersen2004-10-031-3/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. >
* Oops, typo.Joakim Tjernlund2004-09-281-1/+1
| | | | Thanks to Peter Kjellerstedt.
* Remove /usr/X11R6/lib from search path.Joakim Tjernlund2004-09-281-6/+2
| | | | | | | | 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.
* Make ldd work for ET_DYN executables. From Peter Mazinger.Joakim Tjernlund2004-09-281-2/+2
|
* Look in /usr/X11R6/lib as wellEric Andersen2004-03-181-0/+1
|
* Fix commentEric Andersen2004-03-081-2/+2
|
* Yet more fixups..Eric Andersen2004-02-131-2/+8
|
* Done free path if it equals not_foundEric Andersen2004-02-131-1/+5
| | | | Remember to flose an fopened file
* Another little touch up to avoid problems...Eric Andersen2004-02-131-0/+2
|
* A better fix...Eric Andersen2004-02-131-6/+4
|
* Fix the annoying "not a dynamic executable" problem when running lddEric Andersen2004-02-131-4/+4
| | | | on libuClibc
* Cleanup whitespace and formattingEric Andersen2004-02-131-36/+31
|
* Avoid potential double free when locate_library_file() is usedEric Andersen2004-02-131-4/+7
| | | | on fully resolved names
* The code for checking the rpath was not finding the rpathEric Andersen2004-02-011-6/+20
| | | | | value correctly, since it forgot to lookup the correct value in the string table.
* Hopefully this is correct for cris.Manuel Novoa III2003-11-231-0/+4
|
* Fix a stupid potential segfaultEric Andersen2003-11-121-1/+2
|
* Begin converting the client utilsEric Andersen2003-11-061-0/+664