From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19466 invoked by alias); 8 Sep 2017 23:01:34 -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 18581 invoked by uid 89); 8 Sep 2017 23:01:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=H*UA:github.com, H*M:google X-HELO: mail-oi0-f45.google.com Received: from mail-oi0-f45.google.com (HELO mail-oi0-f45.google.com) (209.85.218.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 08 Sep 2017 23:01:32 +0000 Received: by mail-oi0-f45.google.com with SMTP id l74so18123311oih.1 for ; Fri, 08 Sep 2017 16:01:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:to:references:subject :user-agent; bh=OG76mFSvoH8Wg4NRuL29rYmClFZOP1cMzWzPdEXacjw=; b=gFa0Ewcx1dTrd7A+IihsXvut06JrAO6bmdJwkDaDS1QKV/tg+yOgWFxCrku76d05zi uWwNsgoIL32M9TvGnzgK2+xkch+aj43+y5oLe0RzE6qJrQzNILovRt7iW1AUlPP0KsdU aEjXxQXkmiKrn0v2C7pUVnZ0JB7hKSu9c9F/1r6pG6LeoSwSaaZgKZBfHp7cOG/QtNhn h3jIOOPTGQZbwoDKV70+zx1rgCFG/mQpI6wc1icbMvOl2kZG+ANGCJdXSKHziHbrTkFd 494bNlGDdsOoKmkc97LHPDdoCyTOamrCDOJBIWaAsGOJTixXKKJd/i67Mop0FhR6zAuK jdFg== X-Gm-Message-State: AHPjjUhHiZonk49Nh9zHwuSzu1UrISIKAvqik/kLM1L+K2hg+9MNN0Gk JCRnxDD3Fr8A/Y6Z X-Google-Smtp-Source: AOwi7QADOXFkbsIezotQnN0Zl3V99rv9yYBozMyw+2jzodOCHclbn64KLmqIHtNdW/jA9ErXk2ZH6Q== X-Received: by 10.202.231.212 with SMTP id e203mr4770736oih.43.1504911690873; Fri, 08 Sep 2017 16:01:30 -0700 (PDT) Received: from 9AF ([2605:6000:9fc0:56:3c14:e5c4:5a0e:92]) by smtp.gmail.com with ESMTPSA id w199sm4208518oia.57.2017.09.08.16.01.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Sep 2017 16:01:30 -0700 (PDT) Message-ID: <59b3214a.d049ca0a.cd021.98bd@mx.google.com> Date: Fri, 08 Sep 2017 23:01:00 -0000 From: Steven Penny X-Google-Original-From: Steven Penny To: cygwin@cygwin.com References: Subject: Re: i686-w64-mingw32-gcc -fstack-protector-strong Content-Type: text/plain; charset=utf8; format=flowed User-Agent: Tryst/2.0.1 (github.com/svnpenn/tryst) X-SW-Source: 2017-09/txt/msg00104.txt.bz2 On Fri, 8 Sep 2017 10:14:54, Lee wrote: > $ 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) > > $ i686-w64-mingw32-gcc --version > i686-w64-mingw32-gcc (GCC) 5.4.0 You need to paste or link to div.c, otherwise this seems a pointless exercise. See, I cannot repro: $ cat div.c #include int main() { puts("hello world"); } $ x86_64-w64-mingw32-gcc -o div div.c $ ./div hello world $ x86_64-w64-mingw32-gcc -fstack-protector-strong -o div div.c $ ./div hello world $ ldd div ntdll.dll => /cygdrive/c/Windows/SYSTEM32/ntdll.dll (0x773a0000) kernel32.dll => /cygdrive/c/Windows/system32/kernel32.dll (0x77180000) KERNELBASE.dll => /cygdrive/c/Windows/system32/KERNELBASE.dll (0x7fefd1a0000) msvcrt.dll => /cygdrive/c/Windows/system32/msvcrt.dll (0x7fefde00000) $ x86_64-w64-mingw32-gcc --version x86_64-w64-mingw32-gcc (GCC) 5.4.0 -- 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