From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 73461 invoked by alias); 8 Sep 2017 18:53:46 -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 73451 invoked by uid 89); 8 Sep 2017 18:53:45 -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=UD:cygcheck.html, cygcheckhtml, cygcheck.html, cygwin-ug-net X-HELO: mail-it0-f43.google.com Received: from mail-it0-f43.google.com (HELO mail-it0-f43.google.com) (209.85.214.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 08 Sep 2017 18:53:44 +0000 Received: by mail-it0-f43.google.com with SMTP id o200so4689080itg.0 for ; Fri, 08 Sep 2017 11:53:44 -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=FhE43PA9zCMvgn2dq1Bmfs+puETEgHe5Lad6x1cdDzA=; b=YyKqiNmX3PNrXbHBGcZAayGYaf8tbiSUMb5fYUOPgzijS/7OrDukBZP2P9ya9AMaEB ttq/Yk5/rJHDJU7QDwzWD6PnHbXcDed8Xjv1ENpHBkKNmaPTb/RKXPBAFbKwceWYNXdC 3eOm4z4TdoR6RZnaalinckz64u4JsXZJu5RqTjz7ZkXbpAXMGhqieW9ztIEl5tYAMWUE S3BE/KdRi7iUY5cUyDeK74Jyz9eDmP/8Jf0f0brio2yxW2PPglYXzdxreuTkTPUlAvsp Nabyh3ZGu7BBJrpvW+gwqsM0Yk2mpl9hCvQCvER/UkdXqWOWoc8mj95FeXJFM0861uZU dQ/Q== X-Gm-Message-State: AHPjjUjVjeSGXLYy59QwAOlSkIK/qK7i/oAmXJhhOByaaUuwxCELrQqm k/lngKmmui7fymhz3+CmoCSodxWyL28BAbgU6hQ= X-Google-Smtp-Source: AOwi7QDUp82D+XfLV/ETbzDink3/A4eQfK2DJmzJ94pRMNPAaWZHmuBNotth0Drm/IHKNtPHw83L9gjDQOwIRiFHHq8= X-Received: by 10.36.36.10 with SMTP id f10mr2278913ita.104.1504896822213; Fri, 08 Sep 2017 11:53:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.184.1 with HTTP; Fri, 8 Sep 2017 11:53:41 -0700 (PDT) In-Reply-To: References: From: Lee Date: Fri, 08 Sep 2017 18:53: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/msg00096.txt.bz2 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