summaryrefslogtreecommitdiffstats
path: root/usr.bin/ldd
Commit message (Collapse)AuthorAgeFilesLines
* Increase size of argv[] array to avoid running off the end.truckman2016-05-161-1/+1
| | | | | | Reported by: Coverity CID: 1193819 MFC after: 1 week
* We don't support a.out executables on RISC-V.br2016-01-241-2/+2
| | | | | | | Reviewed by: emaste Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Differential Revision: https://reviews.freebsd.org/D5048
* Add support for ARM EABI.jkim2015-10-161-1/+12
| | | | MFC after: 1 week
* Add META_MODE support.sjg2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-271-1/+10
| |\ | |/ |/|
| * Merge head from 7/28sjg2014-08-191-1/+1
| |\
| * | Updated dependenciessjg2014-05-161-1/+0
| | |
| * | Updated dependenciessjg2014-05-101-0/+2
| | |
| * | Merge headsjg2014-04-281-1/+0
| |\ \
| * \ \ Merge from headsjg2013-09-051-13/+17
| |\ \ \
| * | | | Updated dependenciessjg2013-03-111-0/+1
| | | | |
| * | | | Updated dependenciessjg2013-02-161-2/+0
| | | | |
| * | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+20
| | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | Allowus to exclude a.out support from ldd and use it with arm64 as it won'tandrew2015-03-181-1/+10
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | support the a.out format. Reviewed by: emaste Sponsored by: The FreeBSD Foundation
* | | | use .Mt to mark up email addresses consistently (part3)bapt2014-06-231-1/+1
| |_|/ |/| | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de>
* | | Avoid double close() of a file descriptor.brueffer2014-04-131-1/+0
| |/ |/| | | | | | | | | CID: 1006089 Found with: Coverity Prevent(tm) MFC after: 1 week
* | Pass variables prefixed with both LD_ and LD_32_ to the run-time linker.markj2013-08-071-13/+17
|/ | | | | | | | | | This prevents unintentional execution of programs when running ldd(1) on 32-bit Linux binaries. PR: 175339, 127276 Suggested by: kib, rstone Reviewed by: kib MFC after: 2 weeks
* Fix clang warnings.benl2011-06-181-12/+34
| | | | Approved by: philip (mentor)
* hdr.elf.e_ident[EI_OSABI] is not a bitmask so '==' should been used.brucec2010-11-221-2/+2
| | | | Reported by: Artem Belevich <fbsdlist at src.cx>
* MFtbemd:imp2010-08-231-1/+1
| | | | | Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want to test of all the CPUs of a given family conform.
* Build usr.bin/ with WARNS=6 by default.ed2010-01-021-1/+0
| | | | Also add some missing $FreeBSD$ to keep svn happy.
* - correctly render the provided exampledanger2009-11-281-1/+1
| | | | | PR: docs/140962 Submitted by: mharo
* A few style and whitespace fixes.jhb2008-08-021-11/+9
| | | | Submitted by: bde
* Tweak the support for using ldd on 32-bit objects a bit further.jhb2008-08-013-39/+68
| | | | | | | | | | | | | Specifically, build a 32-bit /usr/bin/ldd32 on amd64 which handles 32-bit objects. Since it is a 32-bit binary, it can fork a child process which can dlopen() a 32-bit shared library. The current 32-bit support in ldd can't do this because it does the dlopen() from a 64-bit process. In order to preserve an intuitive interface for users, the ldd binary automatically execs /usr/bin/ldd32 for 32-bit objects. The end result is that ldd on amd64 now transparently handles 32-bit shared libraries in addition to 32-bit binaries. Submitted by: ps (indirectly)
* Fix text in the comment why we check for ELF32_R_TYPEedwin2008-07-281-8/+5
| | | | | Approved by: bde@ MFC after: 2 days2 days
* After the commit of SVN rev 180236, wilko@ noticed that the approachedwin2008-07-211-4/+18
| | | | | | | | | doesn't work on the Alpha platform: machine/elf.h doesn't include sys/elf32.h there. PR: related to bin/124906 Approved by: bde@ MFC after: 1 week
* On 64 bit architectures, you can run 32 bit executables and the rtld can ↵edwin2008-07-032-2/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | trace them, but ldd(1) doesn't know yet how to detect them: [/] root@ed-exigent>ldd `which httpd` ldd: /usr/local/sbin/httpd: can't read program header ldd: /usr/local/sbin/httpd: not a dynamic executable But... [/] root@ed-exigent>LD_32_TRACE_LOADED_OBJECTS==1 `which httpd` libm.so.4 => /lib32//libm.so.4 (0x280c8000) libaprutil-1.so.2 => /usr/local/lib/libaprutil-1.so.2 (0x280de000) libexpat.so.6 => /usr/local/lib/libexpat.so.6 (0x280f2000) libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x28110000) libapr-1.so.2 => /usr/local/lib/libapr-1.so.2 (0x281fd000) libcrypt.so.3 => /lib32//libcrypt.so.3 (0x2821d000) libpthread.so.2 => not found (0x0) libc.so.6 => /lib32//libc.so.6 (0x28235000) libpthread.so.2 => /usr/lib32/libpthread.so.2 (0x2830d000) Added support in ldd(1) for the LD_32_xxx environment variables if the architecture of the machine is >32 bits. If we ever go to 128 bit architectures this excercise will have to be repeated but thanks to earlier commits today it will be relative simple. PR: bin/124906 Submitted by: edwin Approved by: bde (mentor) MFC after: 1 week
* Extract the determination of the kind of (dynamic) executable fromedwin2008-07-031-81/+120
| | | | | | | | | | the main-loop into a seperate function. Instead of using hardcoded environment variables, define them in a lookup table. For the rest, no functionality changes. Approved by: bde (mentor) MFC after: 1 week
* stylify ldd.c, no functional changes.edwin2008-07-031-37/+34
| | | | | Approved by: bde (mentor) MFC after: 1 week
* Typobms2008-05-151-1/+1
|
* Add an example of how to use ldd -f.bms2008-05-151-1/+8
|
* Expand documentation of -f optionpav2007-05-121-1/+8
| | | | | | PR: docs/66265 Submitted by: Michel Lavondes <fox@vader.aacc.cc.md.us> MFC after: 1 week
* The type of some aout header types changed to uint_32, so now we needdwmalone2004-06-292-13/+14
| | | | to cast to long before printing. While I'm here, raise WARNS to 6.
* Fix a few WARNS:dwmalone2004-02-151-6/+6
| | | | | | | 1) Include string.h for strcpy. 2) Don't make duplicate declaration of dump_file, we now include extern.h. 3) Help out with some constness. 4) Cast to slightly better types in some comparisons.
* Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/schweikh2002-12-301-1/+1
| | | | Add FreeBSD Id tag where missing.
* Fix a problem with RTLD_TRACE flag to dlopen(3), which sometimes can returnsobomax2002-10-191-5/+4
| | | | | | | | | | | | | even if there was no error occured (when trying to dlopen(3) object that already linked into executable which does dlopen(3) call). This is more proper fix for `ldd /usr/lib/libc.so' problem, because the new behaviour conforms to documentation. Remove workaround from ldd.c (rev.1.32). PR: 35099 Submitted by: Nathan Hawkins <utsl@quic.net> MFC after: 1 week
* Initiate deorbit burn for the i386-only a.out related support. Moves arepeter2002-09-171-3/+1
| | | | | | | | | | | | | | | under way to move the remnants of the a.out toolchain to ports. As the comment in src/Makefile said, this stuff is deprecated and one should not expect this to remain beyond 4.0-REL. It has already lasted WAY beyond that. Notable exceptions: gcc - I have not touched the a.out generation stuff there. ldd/ldconfig - still have some code to interface with a.out rtld. old as/ld/etc - I have not removed these yet, pending their move to ports. some includes - necessary for ldd/ldconfig for now. Tested on: i386 (extensively), alpha
* Fix a tiny bug in shlib support of ldd(1); if dlopen(lib, RTLD_TRACE)knu2002-05-171-4/+5
| | | | | | | | | | | | | | returns, exit gracefully with 0. This fixes the behavior you see when you specify libc.so. It occurs because ldd(1) itself is linked with libc.so. $ ldd /usr/lib/libc.so /usr/lib/libc.so: ldd: /usr/lib/libc.so: (null) /usr/lib/libc.so: exit status 1 Reviewed by: silence of audit@
* Warns; ANSIfy, constify and move declarations into a common header.markm2002-04-283-39/+68
|
* Remove GCC-specific flags.markm2002-04-281-1/+0
|
* Include <arpa/inet.h> for prototype of ntohl() used in the N_BADMAG()mike2002-04-202-0/+2
| | | | macro.
* Use `The .Nm utility'charnier2002-04-201-1/+2
|
* remove __Pimp2002-03-221-1/+1
|
* mdoc(7) police: kill hard sentence breaks.ru2002-03-151-2/+4
|
* Add support such that if LD_TRACE_LOADED_OBJECTS_ALL is defined to aobrien2002-02-172-5/+19
| | | | | | | | non-empty string in the environment; we indicate which objects caused each object to be loaded. PR: 30908 Submitted-by: Mike Meyer <mwm@mired.org>
* Inspect ELF header and reject any non-FreeBSD shared objects.sobomax2002-02-081-1/+7
| | | | MFC after: 2 weeks
* Allow ldd(1) be used on shared libraries in addition to executables.sobomax2002-02-042-3/+14
|
* GC meaningless assignment.sobomax2002-02-041-1/+1
| | | | MFC after: 3 days
* Fix long format mismatch with int argdillon2001-10-291-1/+1
|
OpenPOWER on IntegriCloud