delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/01/09/12:14:14

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 9 Jan 2009 12:13:21 -0500
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: New "ldd" binary in snapshot and eventually in release
Message-ID: <20090109171321.GA17093@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20090109170544 DOT GA17048 AT ednor DOT casa DOT cgf DOT cx>
MIME-Version: 1.0
In-Reply-To: <20090109170544.GA17048@ednor.casa.cgf.cx>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Note-from-DJ: This may be spam

On Fri, Jan 09, 2009 at 12:05:45PM -0500, Christopher Faylor wrote:
>Last night, after seeing a request on irc, I did something that I've
>been meaning to do for many years - I wrote an "ldd" for Cygwin.
>
>The tricky part about writing ldd is getting it to display the load
>addresses of dlls that a program uses.  I accomplished that by running
>the program up to its entry point, displaying the list of loaded dlls
>and their load addresses, and then terminating the process.
>
>I haven't verified this but ldd should work on any windows program.  ldd
>itself is a cygwin program but the programs it inspects don't have to
>be.  The output is similar to but not identical linux.  The paths that
>it displays are in /cygwin/format.
>
>Btw, the techniques that I used may only work on Windows XP and above.
>I haven't confirmed that either.
>
>I haven't updated the documentation to include ldd yet but I expect to
>do that over the weekend.

Meant to add a link to a man page for ldd for people who don't know what
it is:

http://linux.about.com/library/cmd/blcmdl1_ldd.htm

Only the --help and --version options are implemented in the version
that I wrote last night.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019