From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: ASSI Newsgroups: gmane.emacs.bugs Subject: bug#50666: 28.0.50; Fix native compilation on Cygwin Date: Sun, 19 Sep 2021 09:00:46 +0200 Message-ID: <87bl4pf3s1.fsf@Otto.invalid> References: <9f20194e-b1ba-9417-4f18-caa1d80b5568@cornell.edu> <01a89ba6-2786-df04-0181-069b50a70331@cornell.edu> <835yux5dn1.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="1856"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cc: 50666@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 19 09:03:26 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 1mRqrG-0000Lo-Bk for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Sep 2021 09:03:26 +0200 Original-Received: from localhost ([::1]:37448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRqrE-0000o3-J5 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Sep 2021 03:03:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39180) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRqqs-0000nv-9X for bug-gnu-emacs@gnu.org; Sun, 19 Sep 2021 03:03:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54081) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRqqs-0004jW-1X for bug-gnu-emacs@gnu.org; Sun, 19 Sep 2021 03:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mRqqr-0003ds-Rz for bug-gnu-emacs@gnu.org; Sun, 19 Sep 2021 03:03:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: ASSI Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Sep 2021 07:03:01 +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 Original-Received: via spool by 50666-submit@debbugs.gnu.org id=B50666.163203492813931 (code B ref 50666); Sun, 19 Sep 2021 07:03:01 +0000 Original-Received: (at 50666) by debbugs.gnu.org; 19 Sep 2021 07:02:08 +0000 Original-Received: from localhost ([127.0.0.1]:37394 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRqpz-0003cd-P7 for submit@debbugs.gnu.org; Sun, 19 Sep 2021 03:02:08 -0400 Original-Received: from smtpout2.vodafonemail.de ([145.253.239.133]:40004) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRqpx-0003c7-EN for 50666@debbugs.gnu.org; Sun, 19 Sep 2021 03:02:06 -0400 Original-Received: from smtp.vodafone.de (smtpa08.fra-mediabeam.com [10.2.0.39]) by smtpout2.vodafonemail.de (Postfix) with ESMTP id A23B6612CA; Sun, 19 Sep 2021 09:00:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexgo.de; s=vfde-smtpout-mb-15sep; t=1632034848; bh=6iCOvAahTE+6vujeLJj6xsTiztBfyJXv2zOT8aB9Z/s=; h=From:To:Cc:Subject:References:Date:In-Reply-To; b=MpvWgYIDV8ZKeK7nl+saHQTL1hHsmXVL7u3zs8znr+p4ylgluVDSpw3qq/KDmHyhq oZzqVWcwqhI57J17HopbZYxiPYzjX3okvdImsvCsRfqotswRDTaVkUpQTSGLCZzkeh 7LKrmhXHxjpXaEwttzLphgLguxvE+tisqI/ehJKU= Original-Received: from Otto (p54a0cb96.dip0.t-ipconnect.de [84.160.203.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.vodafone.de (Postfix) with ESMTPSA id A5A4E1401C8; Sun, 19 Sep 2021 07:00:47 +0000 (UTC) In-Reply-To: <835yux5dn1.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 19 Sep 2021 08:37:54 +0300") X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate: clean X-purgate-size: 883 X-purgate-ID: 155817::1632034848-00007455-0EE23518/0/0 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:214687 Archived-At: Eli Zaretskii writes: > Isn't there a way to rebase a DLL on the fly, when it is loaded? There is (of course), but then there is no guarantee that you can do a fork from the resulting memory image. Which is exactly the problem that fixing the base addresses of all DLL was intended to solve and has the unfortunate side effect that you need to modify the on-disk representation. On 64bit, marking the eln as ASLR w/ high-entropy and large address aware will probably work most of the time, but 32bit is much more prone to collisions (in fact I did use a shell inside an X11 Emacs as my test case when I last unsuccessfully tried to make ASLR work for Cygwin). Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds