delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/05/16/13:50:53

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=K2K3+OlnPtZ/D2WC
A2UvHfdhHwt7Nbf2YyfpfHZeFlozjqE574jMeHKFzHI1gjFylcGM7T75vyeGa5d8
OPct58x55UsQIXcFitagMrtUif3z3tdaXl38bR/6szy0Bsu6l3rMwvzrh3ueLRr1
hMZsdbbuaK+XOGNTBjBruthfYJ4=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=n6wZ3CXDdIuMAoMVUtj+vQ
UQ0Gw=; b=cSM5hdlpu7WIXTK5Rlp4UHSRGaPzJpCFJQSlvoRYlbweWixGnxSZG4
30kKB5b64bpCzA0dR6X1AsRZddDDv3XLFvXlRDDdnFQ9+u95O7Qm/hI8eGDGBpQ2
AmKBJXvlkPBpOOtIgczjTtXXWLznzbsNDaPOPoeN5y3CkzJbTXP6A=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=H*M:cygwin, H*Ad:U*yselkowitz, H*i:sk:3AD694B, young
X-HELO: mx1.redhat.com
Subject: Re: Why does ldd not show cyg*.dll in its output?
To: cygwin AT cygwin DOT com
References: <3AD694B4-17D4-4963-88FD-435AD4DD36D5 AT etr-usa DOT com>
From: Yaakov Selkowitz <yselkowitz AT cygwin DOT com>
Message-ID: <4b37d689-285d-7dd4-3e3d-d40b4ee2f81f@cygwin.com>
Date: Mon, 16 May 2016 12:50:34 -0500
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0
MIME-Version: 1.0
In-Reply-To: <3AD694B4-17D4-4963-88FD-435AD4DD36D5@etr-usa.com>
X-IsSubscribed: yes

On 2016-05-16 10:42, Warren Young wrote:
> $ ldd `which ls`
>         ntdll.dll => /c/WINDOWS/SYSTEM32/ntdll.dll (0x7ffd16fb0000)
>         KERNEL32.DLL => /c/WINDOWS/system32/KERNEL32.DLL (0x7ffd16b80000)
>         KERNELBASE.dll => /c/WINDOWS/system32/KERNELBASE.dll (0x7ffd13f50000)

WFM:

$ /bin/ldd /bin/ls
         ntdll.dll => /cygdrive/c/Windows/SYSTEM32/ntdll.dll (0x77c90000)
         kernel32.dll => /cygdrive/c/Windows/system32/kernel32.dll 
(0x77a70000)
         KERNELBASE.dll => /cygdrive/c/Windows/system32/KERNELBASE.dll 
(0x7fefdb10000)
         cygwin1.dll => /usr/bin/cygwin1.dll (0x180040000)
         cygintl-8.dll => /usr/bin/cygintl-8.dll (0x3d4e00000)
         cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x3d8b50000)

> Expected output:
>
> According to Microsoft’s Dependency Walker tool, the output should also list
> cygwin1.dll and cygintl-8.dll, at minimum.  Since it seems happy to chase
> dependencies from kernel32.dll to the other two, which are not explicit
> dependencies of ls.exe, it should also list cygiconv-2.dll, via cygintl.

See above.

> Bonus points if the output changes to a tree view, so the indirect dependencies are clear.

ldd is meant to be compatible with the Linux tool.  As Andrey mentioned, 
use cygcheck instead if you want that layout.

-- 
Yaakov

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

- Raw text -


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