delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/02/28/04:46:47

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B167E3858D29
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1614505602;
bh=kOQL44FNZZcCla/d369z9gga+zvvO5xM8YoSnQbV/lw=;
h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=wJoviI9H9NFigCU2P/7crcZmZcqVx1GJbx/ZWBU0I1118WT7YkzE1jeuFDXI0O1PQ
SwE80l1Op876Al0vwBuLpYAuVdqiUadXY2IJHyGJr94juV69m0eY7MWkW1CSIV3l3F
7xUdEIP9ySQlMpd8u2uzcFJHapEiQ4wqQBZAHL/c=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B02803858D29
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
bh=6udWlWLkI0EiEdbJJwBdMdFrBKLyPGNtUrLWwaAI628=;
b=GkQ20PyXe365i6Bdb9O5ByggEZiLjFrfIKMhnvIEisatbrwMWWPNkIgNUuOvox7upN
Jz7igo5nV4amV5h49pQRY2hi1SLPfwFGet9kY3H/cPOlmwx2sj6GxCIIRBjFazgNVvsv
zZnGQ4Jj9T5Sku75JZyfkj9TEzLUIaSjvtufnFZeckKfHh4IzIQe3G/n1xW5+5GC8Xyz
/xkeR4/S916vFKWXQqNTE/yGYC4K0MehCZJ52K0GYDnPfamd2mcGH011nDiC6NG8kEEY
mycW8WS1pTEKfWDNJNeEBkBLmpQAT5d/d73V9sp6zZYHY8EWQAdNcI0QR6iXyepgEnUA
5pvA==
X-Gm-Message-State: AOAM530uzRyVBh9XgXPtE19gpzVfMQc0fRXnpoC3X4YNixEOvDcl2XWK
3NWJN2b9+OkpbvPgh+zpYEzwgmGKQEvXuv1FO8VKeM0uaJk3tw==
X-Google-Smtp-Source: ABdhPJyXUt/Navlm/SC/ki3ncyO5k50Q0svz7jQse2Ak4n+LMtxpY5gpLeFjkc4ZsuhTY6oqwnBNlF87tCogCDIG5qI=
X-Received: by 2002:a17:906:8443:: with SMTP id
e3mr2757881ejy.370.1614505598807;
Sun, 28 Feb 2021 01:46:38 -0800 (PST)
MIME-Version: 1.0
Date: Sun, 28 Feb 2021 10:46:28 +0100
Message-ID: <CAE6_+UewLqP2Tf5FphSqzG21_P-AnXdBjZ+-5-LwJy5n4fXMqg@mail.gmail.com>
Subject: cygwin + binutils 2.36 + ASLR/dynamicbase defaults
To: cygwin AT cygwin DOT com
X-Spam-Status: No, score=-1.7 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>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

Hey,

binutils 2.36 now defaults to ASLR etc on Windows, so a cygwin compiled linker
will give you:

> peflags -v mydll.dll
mydll.dll: coff(0x2026[+executable_image,+line_nums_stripped,+bigaddr,+dll])
pe(0x0160[+high-entropy-va,+dynamicbase,+nxcompat])

Is this still problematic for cygwin?

The reason I'm asking is because we updated to 2.36 in MSYS2 and are
wondering if
we need to patch this out (or change the defaults) It seems to work as is right
now, but maybe we are just lucky(?).

Some context: https://github.com/msys2/MSYS2-packages/pull/2345

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