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:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; q=dns; s=default; b=MVr1vQo UEFAaKghMb/BoaRXcZ6tQsPQ0qRj9lXxHmm/qZChXjAzfbA5UybwOhigaBQInBz+ bPRcVkkcW/ncPyNtGAHLlnPZwOEhBGK4gYZvnRzKsaQXeAH9DCkSaUOaF9jiZznZ QHHVFdQj6Fyu1Dhdqf/tm9wm9Zdj1R8QT8wQ= 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:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; s=default; bh=TgsAjz20gm0Uu tIjIPBToIRMIaQ=; b=v2pCSwjzenmQRV3Vv3YAUqVQ/Qvo0q3JrSIotlKneZJ8i +L5jHhoEe0B7Yw+6HHqvTazoCHo2FZ4aZGiNveTDE8YvMjFzCHfRTdj+JYwRco+v AqPAUUXTlUCVTXORxqX0ZTiIhmW1Ow6zQyWQjHXPBUYZLimhQYejkslWODqfFs= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=libssp0, H*RU:209.85.223.178, Hx-spam-relays-external:209.85.223.178, luck X-HELO: mail-io0-f178.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=Pr7QlNMsqvLMD1bcEhSnq9i2VcKTdANErkD6l6lFHDw=; b=sdt6CTV6RPqmGqLTk78D52mOkCZ/pp1KOqZ8kAjrwmaJ06Nr9wmSXPWc8Gsr9ZOKsw dHm83AJUph2/GdE6O3UCMDAuSm0PBZq1WwJLBTX2+v7QTrul7A4I4VTt+T+aVIQ5UYUR YV6cW8DAd/2jtXgDYzUFaM/5UflSl2oQ+pFxhbW6y7yuOse1MWjDrbIF3iemEZpHR6VS 3zg5j2h8VYlYU6nhQBasg3PvdfE1gQsld2zfL4S1nWlpzAr+/wv5/Xv/DsP4jCMEQZtm DCJJcM8Xk4Dg0sX/e0m0jvxqeTuvKqb7R02lLrTivXrFSHJOCdoAKaHMTM7HL4QA49Dr zYNQ== X-Gm-Message-State: AHPjjUjROlt+Dw0rhW/2QjaB3ToTtapGVnmkaIMFetpnYrelybltFLG2 Pi+sX8D5HSmRfEZJw0DLDUUK2DvqgQ== X-Google-Smtp-Source: AOwi7QBnzI6vlQsKR1MMKwQPQe0XFrkGRJM6JJ57QXQo5US2VAeTfI1L/VkGHJzC+j4o8XKloG3fQshu9een93xFJlM= X-Received: by 10.107.51.81 with SMTP id z78mr5164167ioz.146.1504900882858; Fri, 08 Sep 2017 13:01:22 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <80ff03da-8e78-f52a-00ad-cf601bbf4e49@gmail.com> References: <80ff03da-8e78-f52a-00ad-cf601bbf4e49 AT gmail DOT com> From: Lee Date: Fri, 8 Sep 2017 16:01:22 -0400 Message-ID: Subject: Re: i686-w64-mingw32-gcc -fstack-protector-strong To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes 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'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) <.. snip examples ..> > You can also use > > $ objdump -x ./net.exe |grep -i "dll name" <.. snip output..> that's interesting 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? 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