This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: i686-w64-mingw32-gcc -fstack-protector-strong
- From: Lee <ler762 at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 8 Sep 2017 14:53:41 -0400
- Subject: Re: i686-w64-mingw32-gcc -fstack-protector-strong
- Authentication-results: sourceware.org; auth=none
- References: <CAD8GWsusnJQk_Z42o966BUwaFHedZ4xnEvBC7AcEtWe=K0ioKg@mail.gmail.com> <b7878d31-389b-2d73-b988-34db0b926efb@gmail.com>
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
vs. built using cygwin:
$ gcc -fstack-protector-strong -o div.exe div.c
$ ./div
works
$ cygcheck ./div.exe
C:\cygwin\home\Lee\t\div.exe
C:\cygwin\bin\cygwin1.dll
C:\WINDOWS\system32\KERNEL32.dll
C:\WINDOWS\system32\ntdll.dll
C:\WINDOWS\system32\KERNELBASE.dll
C:\cygwin\bin\cygssp-0.dll
Was there ever a man page for cygcheck? I remember looking at one,
but maybe I it was https://cygwin.com/cygwin-ug-net/cygcheck.html ??
$ man cygcheck
No manual entry for cygcheck
$ info cygcheck
info: No menu item 'cygcheck' in node '(dir)Top'
Lee
--
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