From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 35386 invoked by alias); 8 Sep 2017 20:01:27 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 35376 invoked by uid 89); 8 Sep 2017 20:01:26 -0000 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 Received: from mail-io0-f178.google.com (HELO mail-io0-f178.google.com) (209.85.223.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 08 Sep 2017 20:01:24 +0000 Received: by mail-io0-f178.google.com with SMTP id i14so7869099ioe.2 for ; Fri, 08 Sep 2017 13:01:24 -0700 (PDT) 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 Received: by 10.79.184.1 with HTTP; Fri, 8 Sep 2017 13:01:22 -0700 (PDT) In-Reply-To: <80ff03da-8e78-f52a-00ad-cf601bbf4e49@gmail.com> References: <80ff03da-8e78-f52a-00ad-cf601bbf4e49@gmail.com> From: Lee Date: Fri, 08 Sep 2017 20:01:00 -0000 Message-ID: Subject: Re: i686-w64-mingw32-gcc -fstack-protector-strong To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2017-09/txt/msg00098.txt.bz2 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