From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 79524 invoked by alias); 16 May 2016 17:53:35 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 78333 invoked by uid 89); 16 May 2016 17:53:34 -0000 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 Received: from mail-wm0-f53.google.com (HELO mail-wm0-f53.google.com) (74.125.82.53) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 16 May 2016 17:53:33 +0000 Received: by mail-wm0-f53.google.com with SMTP id v200so16537698wmv.1 for ; Mon, 16 May 2016 10:53:32 -0700 (PDT) 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) Received: from [192.168.2.109] (pD9E61170.dip0.t-ipconnect.de. [217.230.17.112]) by smtp.googlemail.com with ESMTPSA id ry15sm34961504wjb.19.2016.05.16.10.53.28 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 16 May 2016 10:53:29 -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 Message-ID: <24230280-be49-963c-b8f0-d320db15a27b@gmail.com> Date: Mon, 16 May 2016 17:53:00 -0000 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 X-SW-Source: 2016-05/txt/msg00189.txt.bz2 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