From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Achim Gratz Newsgroups: gmane.emacs.bugs Subject: bug#50666: 28.0.50; Fix native compilation on Cygwin Date: Thu, 23 Sep 2021 19:49:05 +0200 Organization: Linux Private Site Message-ID: <878rznrxm6.fsf@Rainer.invalid> References: <9f20194e-b1ba-9417-4f18-caa1d80b5568@cornell.edu> <01a89ba6-2786-df04-0181-069b50a70331@cornell.edu> <835yux5dn1.fsf@gnu.org> <87bl4pf3s1.fsf@Otto.invalid> <83tuih3uvr.fsf@gnu.org> <877dfcg5tu.fsf@Otto.invalid> <83pmt44vn1.fsf@gnu.org> <83mto84r9l.fsf@gnu.org> <83fsu04mai.fsf@gnu.org> <1a5e01a2-2247-2f68-82f6-2075577e02b6@cornell.edu> <837dfc4hi1.fsf@gnu.org> <4ae8067f-55b2-d243-66f3-f76493095a39@cornell.edu> <83o88jvity.fsf@gnu.org> <8e8e74ce-0deb-bcdc-d298-be2e9d4636d7@cornell.edu> <83bl4juu2c.fsf@gnu.org> <837df7urnz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39027"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) To: 50666@debbugs.gnu.org Cancel-Lock: sha1:nq60DzIuN5PUqrlj0R8IC4T6zW4= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 23 19:50:22 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mTSrW-0009vC-3Y for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 Sep 2021 19:50:22 +0200 Original-Received: from localhost ([::1]:52952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTSrU-0003GJ-KL for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 Sep 2021 13:50:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTSrC-0003GB-Kk for bug-gnu-emacs@gnu.org; Thu, 23 Sep 2021 13:50:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44249) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mTSrC-000534-Cl for bug-gnu-emacs@gnu.org; Thu, 23 Sep 2021 13:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mTSrC-0000UX-BI for bug-gnu-emacs@gnu.org; Thu, 23 Sep 2021 13:50:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <9f20194e-b1ba-9417-4f18-caa1d80b5568@cornell.edu> Resent-From: Achim Gratz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Sep 2021 17:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50666 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16324193651832 (code B ref -1); Thu, 23 Sep 2021 17:50:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Sep 2021 17:49:25 +0000 Original-Received: from localhost ([127.0.0.1]:55795 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTSqb-0000TT-1B for submit@debbugs.gnu.org; Thu, 23 Sep 2021 13:49:25 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:56140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTSqZ-0000TJ-6y for submit@debbugs.gnu.org; Thu, 23 Sep 2021 13:49:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50970) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTSqV-00035r-PC for bug-gnu-emacs@gnu.org; Thu, 23 Sep 2021 13:49:22 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:38196) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTSqT-0004P2-8q for bug-gnu-emacs@gnu.org; Thu, 23 Sep 2021 13:49:18 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mTSqP-0008WL-St for bug-gnu-emacs@gnu.org; Thu, 23 Sep 2021 19:49:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.248, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:215214 Archived-At: Eli Zaretskii writes: >> We still need to do something for 64-bit Cygwin. Even though address collisions >> are unlikely they could still happen theoretically. But there might be a much >> easier solution that doesn't necessarily require rebasing. For example, Achim >> mentioned earlier the possibility of marking the eln as ASLR w/ high-entropy and >> large address aware. > > Isn't that the default of the 64-bit GNU ld on Windows? Or does > Cygwin configure Binutils differently from MinGW? No, I've had to remove that default since obviously it doesn't work on Cygwin. Yes, I have seen this problem in reality while testing the new binutils - that why I patched it out. > If not, we can use native-comp-driver-options, by giving it a non-nil > value for Cygwin, to force this. All that would be needed, on 64bit at least, is a tiny bit more control over how ASLR works, but there isn't even proper documentation about what it actually does (that I can find anyway). M$ must have solved that problem for WSL1, but whatever it was, it didn't make it to the NT subsystem. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Wavetables for the Terratec KOMPLEXER: http://Synth.Stromeko.net/Downloads.html#KomplexerWaves