delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/09/08/15:25:26

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=MfnI5pbh+xVMgYdv
dhi3IOly7d7UfuJsxiMlzbGw5/qvRUgvQ3jQca7WFErx7l/5adwPc8BJ7L/K/sjU
QXxCfSPzEHG0j8zXbDCmxm1bMkRg61PjhlNMyaH2THBgbQtnAqtb3IH9xL5aiOxD
tuzQSbUDXi0bAkf4Ug84VIka8rM=
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=Js6b1FjvF1GiQgOalj0ZEp
yX8Eo=; b=WrsHbMtaHu4SSLO2geZh6UnWKsBPvwgvQASewEPGRCYwMUSm/K2jOo
jBpzPzbb5CT8NjWIUlovFmD1OED/b244QUbeTIVl4JuPd7iWZdMtOO6C2K5n7iue
o/4qIkVZZXdzbhIcVXVFO7Bdki9p6aFBUzX7TKCP+5Hzun7B9FPXM=
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=-1.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=
X-HELO: mail-wm0-f48.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=NEo8T3WsemwDDhT/A7H3+2+2jt9ygWNGaIYii0CszqE=; b=PgcYitVtRrsObhQqUOBVHmEfv/q/ou0cf9eliHJ2eLpNkx9cHMi/YSUt6s2Tg+EgEj 495sSGJQRUFZkxvckDzJiUfBx3V1KB0sEsqHHYGYx4DtTvyD0/6Qem6Pbr3oQZ80JORE uYZzjH9qWSqKp5Tm18o0QK3VhjS+teAt6uvxD2quYfgCMU5yc12kf5n7JuHW2yS1RFhT 3LgpTVaAwGuKuWmJOeMlNUEvRHG44KwCsfj3nD3Gbh1puMztiL/N34J0BONK/zxQkJcy /lQzJ98T1h2glFw1mWhJavGNxK9CQob63Abgmk7TZ7teigV41v46yNLBdZD9fT0iTxOP NgrA==
X-Gm-Message-State: AHPjjUgcxJJoq5BtKHjrwP4Eip6S9osbXR9FuarCcPJyXAyOP43KuvZF JuI2OpjzMpoDzftWY8wGmvqzAw==
X-Google-Smtp-Source: AOwi7QBh0Cijq+ric/6d9k000ocdfcu0MI1qrjZAUoSeMFbUGnzAI8IQZShTfcMtt3sCYrNBKw5GZA==
X-Received: by 10.28.142.81 with SMTP id q78mr2337960wmd.136.1504898710485; Fri, 08 Sep 2017 12:25:10 -0700 (PDT)
Subject: Re: i686-w64-mingw32-gcc -fstack-protector-strong
To: cygwin AT cygwin DOT com
References: <CAD8GWsusnJQk_Z42o966BUwaFHedZ4xnEvBC7AcEtWe=K0ioKg AT mail DOT gmail DOT com> <b7878d31-389b-2d73-b988-34db0b926efb AT gmail DOT com> <CAD8GWsu53ZtB5exta8vmpAJZiNsvAi2xKK0KKctq-hiaW5Fsfw AT mail DOT gmail DOT com>
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Message-ID: <80ff03da-8e78-f52a-00ad-cf601bbf4e49@gmail.com>
Date: Fri, 8 Sep 2017 21:25:03 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0
MIME-Version: 1.0
In-Reply-To: <CAD8GWsu53ZtB5exta8vmpAJZiNsvAi2xKK0KKctq-hiaW5Fsfw@mail.gmail.com>
X-IsSubscribed: yes

On 08/09/2017 20:53, Lee wrote:
> On 9/8/17, Marco Atzeri   wrote:
>> On 08/09/2017 16:14, Lee wrote:
>>> I'm hoping that I'm just missing a library, but which one?  Even
>>> better, how to tell which one?
>>>
>>> $ i686-w64-mingw32-gcc -o div.exe div.c
>>> $ ./div
>>>     works
>>>
>>> $ i686-w64-mingw32-gcc -fstack-protector-strong -o div.exe div.c
>>> $ ./div
>>> C:/cygwin/home/Lee/t/div.exe: error while loading shared libraries: ?:
>>> cannot open shared object file: No such file or directory
>>>
>>> $ ldd div.exe
>>>           ntdll.dll => /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll
>>> (0x7ffef5c50000)
>>>           ??? => ??? (0x778f0000)
>>>           wow64.dll => /cygdrive/c/WINDOWS/System32/wow64.dll (0x50e50000)
>>>           wow64win.dll => /cygdrive/c/WINDOWS/System32/wow64win.dll
>>> (0x50dd0000)
>>>
>>
>> try
>>     cygcheck ./div.exe
> 
> nothing useful for a non-cygwin program?
> $ cygcheck ./div.exe
> C:\cygwin\home\Lee\t\div.exe

cygcheck works also for not cygwin program
( cygcheck --help for details)

cd /cygdrive/c/windows/system32

  $ cygcheck ./net.exe
C:\windows\system32\net.exe
   C:\windows\system32\ADVAPI32.dll
     C:\windows\system32\msvcrt.dll
       C:\windows\system32\KERNELBASE.dll
         C:\windows\system32\ntdll.dll
[long cut]
   C:\windows\system32\samcli.dll
   C:\windows\system32\srvcli.dll
   C:\windows\system32\wkscli.dll
   C:\windows\system32\MPR.dll
   C:\windows\system32\IPHLPAPI.DLL
     C:\windows\system32\NSI.dll
     C:\windows\system32\WINNSI.DLL

You can also use

  $ objdump -x ./net.exe |grep -i "dll name"
         DLL Name: ADVAPI32.dll
         DLL Name: KERNEL32.dll
         DLL Name: msvcrt.dll
         DLL Name: ntdll.dll
         DLL Name: netutils.dll
         DLL Name: browcli.dll
         DLL Name: samcli.dll
         DLL Name: srvcli.dll
         DLL Name: wkscli.dll
         DLL Name: MPR.dll
         DLL Name: IPHLPAPI.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

- Raw text -


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