From: Marco Atzeri <marco.atzeri@gmail.com>
To: cygwin@cygwin.com
Subject: Re: i686-w64-mingw32-gcc -fstack-protector-strong
Date: Fri, 08 Sep 2017 19:25:00 -0000 [thread overview]
Message-ID: <80ff03da-8e78-f52a-00ad-cf601bbf4e49@gmail.com> (raw)
In-Reply-To: <CAD8GWsu53ZtB5exta8vmpAJZiNsvAi2xKK0KKctq-hiaW5Fsfw@mail.gmail.com>
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
next prev parent reply other threads:[~2017-09-08 19:25 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-08 14:15 Lee
2017-09-08 15:04 ` Marco Atzeri
2017-09-08 18:53 ` Lee
2017-09-08 19:25 ` Marco Atzeri [this message]
2017-09-08 20:01 ` Lee
2017-09-08 20:10 ` Marco Atzeri
2017-09-08 21:08 ` Lee
2017-09-08 22:34 ` Yaakov Selkowitz
2017-09-08 23:10 ` Lee
2017-09-08 21:09 ` Nellis, Kenneth
2017-09-08 21:42 ` Lee
2017-09-08 23:01 ` Steven Penny
2017-09-08 23:22 ` Lee
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=80ff03da-8e78-f52a-00ad-cf601bbf4e49@gmail.com \
--to=marco.atzeri@gmail.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).