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 20:25:02 +0200 Organization: Linux Private Site Message-ID: <874kabrvy9.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> <878rznrxm6.fsf@Rainer.invalid> <83zgs3tblj.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="29210"; 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:6SuUEVrNKqYAA5N70cat/iKr0XY= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 23 20:28:44 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 1mTTSd-0007Nl-TR for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 Sep 2021 20:28:43 +0200 Original-Received: from localhost ([::1]:42350 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTTSc-0002Gv-Jt for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 Sep 2021 14:28:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTTQ3-0000bo-6s for bug-gnu-emacs@gnu.org; Thu, 23 Sep 2021 14:26:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44295) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mTTQ2-0002Wq-Vn for bug-gnu-emacs@gnu.org; Thu, 23 Sep 2021 14:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mTTQ2-0001U3-GH for bug-gnu-emacs@gnu.org; Thu, 23 Sep 2021 14:26: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 18:26: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.16324215185642 (code B ref -1); Thu, 23 Sep 2021 18:26:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Sep 2021 18:25:18 +0000 Original-Received: from localhost ([127.0.0.1]:55841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTTPJ-0001Sw-So for submit@debbugs.gnu.org; Thu, 23 Sep 2021 14:25:18 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:42402) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTTPI-0001So-47 for submit@debbugs.gnu.org; Thu, 23 Sep 2021 14:25:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59946) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTTPH-0008GO-TP for bug-gnu-emacs@gnu.org; Thu, 23 Sep 2021 14:25:15 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:50096) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTTPF-0001pt-OV for bug-gnu-emacs@gnu.org; Thu, 23 Sep 2021 14:25:15 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mTTPC-0002rR-Vm for bug-gnu-emacs@gnu.org; Thu, 23 Sep 2021 20:25:10 +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:215216 Archived-At: Eli Zaretskii writes: > You mean, ASLR doesn't work with Cygwin because it must use the same > address in the forked process? But then why did Ken say that ASLR and > High Entropy could solve the problem with the *.eln files -- isn't > that the same problem? It is, but on 64bit with the massive address space and high entropy using most of it, it will often "just work" for quite some time. > Sorry, I don't understand. My suggestion was, if you need to make the > *.eln files be marked as ASLR with High Entropy, to use a variable we > have for this purpose, it will force the linker to produce *.eln files > with these bits set in the PE+ header. What other control do you need > for your purposes, or what am I missing? The control that Cygwin would need is an indication to whatever generates the image base shifts for ASLR that it should not re-map an image that is already in use elsewhere (maybe just in the same process group). ASLR already re-uses the address for the same image most of the time (the exact behaviour is different across Windows versions), but depending on circumstances outside your control it can suddenly decide to use a different address. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf rackAttack: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds