X-Recipient: archive-cygwin@delorie.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=EYHv8ZURp2BV7y+x
	XmM7vLve1tSEvslcrMDdjTYwX2v5256ltVGLN0/bD0Hm8KLdXoz+6/JEfqq9a8Kv
	c4ql8qpsUTcLQe/y/wopB0khFij7TCGEB5aXKT4xbkBvfIBcfSakjhp81m5QbP/o
	4AU+y/EuI9Xt11OX6N9nmEIBVpw=
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=T/31NFKpIvejYfu4osVt3V
	WbFcQ=; b=kI1ZgVHf4tb74U+Ggc3USIb7ljr5+s293ejhz3OV3Vc2XPDuHkHiXu
	aU9s2FIm8C2izNAADOy24MQlNVAb/g8eo+wVSGnBWiGjL4PfnyDMO9eKouMLeEq1
	9e2lt7Mq2KZSCvn0LGk67/slOeCww3Jj05kpEFOZGyLKkvC79vbes=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Actual, Hx-languages-length:1390, KERNEL32.dll, KERNEL32dll
X-HELO: mail-wm0-f53.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20130820;        h=x-gm-message-state:subject:to:references:from:message-id:date         :user-agent:mime-version:in-reply-to:content-transfer-encoding;        bh=ZLe6r05Hhyj4713MYG/6v6QP1qgNH+Ca7FG4JqbHCMY=;        b=ScnXyuD69e0Y/pcJwy8XE1qY2NXA+fkUQ2k/qqt7V9hWjQuBq3ljQ/1FNuR2Ee/l6K         wxxgdniUExMDPK5RMqg0pgGe9YQBReiu6k3bfTfR6XNDjis0HMfywLJG47ELb2DORBKR         Y+cTsMUfNzIA8x+g9wlk0Q/nogMRA35GwWhZOpY/sfBrb/Ns0D7Q+YTQkzJnxT2rFYBg         /aFBgJ9a+zuMugEv/zhTXMnQehb/+iIKMnv71S8BDTOFHlR5HmsSrfukTJasCjaaKmkc         frHp+q+aORgxNLZCdnpQbD3HS/5O9DG4vr8Dzz40uJDlym4eRMnUmOouyFQ5flROrt4x         GLfw==
X-Gm-Message-State: AOPr4FXiDCM1nnBDdxgzkvyhC9cykyGP+iu8JxrbyXXucNv2xdThZ7fGWZjpQ3PVfg5jPg==
X-Received: by 10.28.113.67 with SMTP id m64mr20019531wmc.58.1463421210208;        Mon, 16 May 2016 10:53:30 -0700 (PDT)
Subject: Re: Why does ldd not show cyg*.dll in its output?
To: cygwin@cygwin.com
References: <3AD694B4-17D4-4963-88FD-435AD4DD36D5@etr-usa.com>
From: Marco Atzeri <marco.atzeri@gmail.com>
Message-ID: <24230280-be49-963c-b8f0-d320db15a27b@gmail.com>
Date: Mon, 16 May 2016 19:53:20 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0
MIME-Version: 1.0
In-Reply-To: <3AD694B4-17D4-4963-88FD-435AD4DD36D5@etr-usa.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes



On 16/05/2016 17:42, Warren Young wrote:
> STC:
>
>     $ ldd `which ls`
>
> Actual output:
>
> $ 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)
>
> 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.
>
> Bonus points if the output changes to a tree view, so the indirect dependencies are clear.

it works as expected for me:

$ ldd /usr/bin/ls.exe
  ntdll.dll => /cygdrive/c/Windows/SYSTEM32/ntdll.dll (0x77410000)
  kernel32.dll => /cygdrive/c/Windows/system32/kernel32.dll (0x771f0000)
  KERNELBASE.dll => /cygdrive/c/Windows/system32/KERNELBASE.dll 
(0x7fefd460000)
  SYSFER.DLL => /cygdrive/c/Windows/System32/SYSFER.DLL (0x74e90000)
  cygwin1.dll => /usr/bin/cygwin1.dll (0x180040000)
  cygintl-8.dll => /usr/bin/cygintl-8.dll (0x3e1840000)
  cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x3e6e90000)


$ objdump -x /usr/bin/ls.exe |grep "DLL Name:"
         DLL Name: cygwin1.dll
         DLL Name: cygintl-8.dll
         DLL Name: KERNEL32.dll



--
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

