This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: i686-w64-mingw32-gcc -fstack-protector-strong


On 9/8/17, Marco Atzeri  wrote:
> On 08/09/2017 22:01, Lee wrote:
>> On 9/8/17, Marco Atzeri  wrote:
>>> On 08/09/2017 20:53, Lee wrote:
>>>> On 9/8/17, Marco Atzeri   wrote:
>>>>> On 08/09/2017 16:14, Lee wrote:
>> I've still got the 'i686-w64-mingw32-gcc -fstack-protector-strong'
>> executable:
>> $ ./div.exe
>> C:/cygwin/home/Lee/t/div.exe: error while loading shared libraries: ?:
>> cannot open shared object file: No such file or directory
>>
>> $ objdump -x ./div.exe | egrep -i "dll name"
>>          DLL Name: KERNEL32.dll
>>          DLL Name: msvcrt.dll
>>          DLL Name: libssp-0.dll
>>
>> https://cygwin.com/cgi-bin2/package-grep.cgi?grep=libssp&arch=x86_64
>> shows libssp0 as the GCC Stack-Smashing Protection runtime library
>> but I don't see anything like that with a leading "mingw64-i686-"
>> name, so I'm out of luck?
>>
>
>
> https://cygwin.com/cgi-bin2/package-cat.cgi?file=x86_64%2Fmingw64-i686-gcc-core%2Fmingw64-i686-gcc-core-6.3.0-1&grep=libssp-0.dll
>
> almost at the end:
>
> usr/i686-w64-mingw32/sys-root/mingw/bin/libssp-0.dll

I already have that
$ ls -l /usr/i686-w64-mingw32/sys-root/mingw/bin/libssp-0.dll
-rwxr-xr-x 1 root None 14336 Feb 22  2017
/usr/i686-w64-mingw32/sys-root/mingw/bin/libssp-0.dll

But run setup, nothing shows as pending, switch to full view, find the
line & clicking on the version cycles thru Keep -> Reinstall ->
6.3.0-1 -> Uninstall -> 5.4.0-3 -> Keep

Upgrading to 6.3.0-1 doesn't change anything:
$ i686-w64-mingw32-gcc --version
i686-w64-mingw32-gcc (GCC) 6.3.0
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ i686-w64-mingw32-gcc -fstack-protector-strong -o div.exe div.c
$ ./div.exe
C:/cygwin/home/Lee/t/div.exe: error while loading shared libraries: ?:
cannot open shared object file: No such file or directory
$ objdump -x ./div.exe | egrep -i "dll name"
        DLL Name: KERNEL32.dll
        DLL Name: msvcrt.dll
        DLL Name: libssp-0.dll
$ ls -l /usr/i686-w64-mingw32/sys-root/mingw/bin/libssp-0.dll
-rwxr-xr-x 1 root None 14336 Aug 17 08:26
/usr/i686-w64-mingw32/sys-root/mingw/bin/libssp-0.dll
$

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]