delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/09/08/19:01:46

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:message-id:date:from:to:references:subject
:content-type; q=dns; s=default; b=GPlGzrJZdFyeUFj/NBIKFDtDfxhEm
0hUf6YFRkxVqhCdSEkoZTfyJtIIYhQaUcCmzMWCEadeKxPTMj3d/kHlnUdXtWCl4
xo+C9wsWS30GihOf2BxvFW1wn5AkA4locAQiDE3vYhDtZgyT+AzgSLaKV0r2e5v2
v5mZtnl68/il8g=
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:message-id:date:from:to:references:subject
:content-type; s=default; bh=JXj2yQR1u3X/ZycovxEyTlQ+GpA=; b=ldi
YxS+lMc76CU4C7kgyRS9w0ZvylXM7n27t3BBb6mygkyjXTXSsJvgS7hRW1OviRvO
nrWip2evQODjdFIza4wQEOMDGsQvZUavdlq1z7AUmMqrRJVg/shLfoN+UMx8Dh5W
CgqaypNcQ8t9fOUDNDoe3x7qznR4caJKipFoZKoQ=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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.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
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)
Message-ID: <59b3214a.d049ca0a.cd021.98bd@mx.google.com>
Date: Fri, 08 Sep 2017 16:01:30 -0700 (PDT)
From: Steven Penny <svnpenn AT gmail DOT com>
X-Google-Original-From: Steven Penny
To: cygwin AT cygwin DOT com
References: <CAD8GWsusnJQk_Z42o966BUwaFHedZ4xnEvBC7AcEtWe=K0ioKg AT mail DOT gmail DOT com>
Subject: Re: i686-w64-mingw32-gcc -fstack-protector-strong
User-Agent: Tryst/2.0.1 (github.com/svnpenn/tryst)

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 <stdio.h>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019