delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/02/28/09:34:58

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DA75A3874C3D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1614522894;
bh=P8cQh+fUE/olRYgcVOFqoKgRTgXFzfdlCRzWJbstv4I=;
h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=fMAD3QmBbI9BGT92WOa+flWQfBUIY06OQmfT6Kwp/5Og4SmCQYQZGGlWMsLPa5uFn
a6Vv/fMKAKACxNfgZQaqjgZuyH2qGGXNnMnd7dY1SjH6m4GKJDPqcEarJ6xtP3nSAg
TYwr7uGieI1k9E3H5LkAyuTV3i0B7rU/RbiZfzUM=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 78D383858D33
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=c7ghpZfjE8FUXZ66cvl2eqtJYW19lgUZrvrnP1rdfZE=;
b=kP5Pyv4YMUDDmdNMPMoPLZiIFpaogtqdkJPu9qIm1RT3CrPsJThBDBDmblGpV7diTz
36iGHTFmf9itM6WJ9SxMi+9O/VTXEj2D53qaZ+QhU1oy+cIYLjM+vGPAoWbw4eBuuklP
+tpMbbb2w1l4QCXuVoJneZD16s6sM4Pqo+8AXcdPsJRwXRhTqM4XglPHAPcTHl7y2cso
+xYZgOKBcOIMA6K9f3W35xTtXFcQtoletwb3J7rxyQwE0AOHy4bdNzeuGXXhPre6iFTt
r+2Xp7pz6PrJ6SAdCsxW+CvOGwfdhDXC+BLPkB3g32BAh72P89nc7xAfJgKANigK8MFM
JDVA==
X-Gm-Message-State: AOAM5315sGB1N/vcVg8zy9TaGu4GHxPqhVwDnwJahjLxUZgzw/0dnQ4L
EqrnF2Afyxd2s/wcOsaAxaAJH9OYQ2WMkw2CT8w=
X-Google-Smtp-Source: ABdhPJwRQYI+uEkZdTHzPv6RDFl4PBeWhUBK4HW1R2Sg9nhMmldeWQ2enWj0zpdeIZ57c8oio0ggKjOi78MxgFF+WUk=
X-Received: by 2002:a17:906:503:: with SMTP id
j3mr11756194eja.172.1614522889623;
Sun, 28 Feb 2021 06:34:49 -0800 (PST)
MIME-Version: 1.0
References: <CAE6_+UewLqP2Tf5FphSqzG21_P-AnXdBjZ+-5-LwJy5n4fXMqg AT mail DOT gmail DOT com>
<87zgzo9zpa DOT fsf AT Otto DOT invalid>
<CAE6_+UeJNP_iDG+gSDzNHxDFcnC0mBh2Gj4usU=GGzV1=JtEHg AT mail DOT gmail DOT com>
<87r1l09tmh DOT fsf AT Otto DOT invalid>
In-Reply-To: <87r1l09tmh.fsf@Otto.invalid>
Date: Sun, 28 Feb 2021 15:34:38 +0100
Message-ID: <CAE6_+UfdqOrCAntLaeHWU+QQVaLNAuSJVgLeWi0Ryekrpd=L-A@mail.gmail.com>
Subject: Re: cygwin + binutils 2.36 + ASLR/dynamicbase defaults
To: ASSI <Stromeko AT nexgo DOT de>
X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Christoph Reiter via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Christoph Reiter <reiter DOT christoph AT gmail DOT com>
Cc: cygwin AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

On Sun, Feb 28, 2021 at 3:22 PM ASSI <Stromeko AT nexgo DOT de> wrote:
>
> Christoph Reiter via Cygwin writes:
> > MSYS2 builds all packages with ASLR since 6 months, so things look
> > good.
>
> That doesn't tell you all that much since you will have to wait for some
> unfavorable address space layout constellation to appear for the problem
> to announce itself and then you need someone to recognize the reason and
> report it back to you.  I tend to see this only on 32bit on my
> development machine where I have a large amount of dependencies
> installed.  After a reboot the problem will move somewhere else, which
> means that you will need to find another reproducer.

To clarify: I was referring to non-cygwin targets. I had assumed you
meant that by "cross compilation toolchain".

> > We've added a patch that allows reverting the base address if needed:
> > https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-binutils/2001-ld-option-to-move-default-bases-under-4GB.patch
>
> In other words, that should be the default then since you can't know if
> it works otherwise.  Also, I really don't think we should need to change
> all toolchains to use these options just in order to produce working
> executables.  If "safer" means "it doesn't work", then there are clearly
> easier ways to get there.

We've only needed this to to work around linker errors, so it's pretty
clear when it is needed as the build will fail.

Anyway, maybe the linked patches can be helpful to you.

regards
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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