From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 75821 invoked by alias); 3 Apr 2017 06:23:29 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 75797 invoked by uid 89); 3 Apr 2017 06:23:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=midi, WaldorfDocs, MIDI, waldorfdocs X-HELO: vsmx010.vodafonemail.xion.oxcs.net Received: from vsmx010.vodafonemail.xion.oxcs.net (HELO vsmx010.vodafonemail.xion.oxcs.net) (153.92.174.88) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 03 Apr 2017 06:23:25 +0000 Received: from vsmx002.vodafonemail.xion.oxcs.net (unknown [192.168.75.192]) by mta-6-out.mta.xion.oxcs.net (Postfix) with ESMTP id F0027807DE for ; Mon, 3 Apr 2017 06:23:23 +0000 (UTC) Received: from Gertrud (unknown [91.47.54.228]) by mta-6-out.mta.xion.oxcs.net (Postfix) with ESMTPA id 2B6503C03B0 for ; Mon, 3 Apr 2017 06:23:22 +0000 (UTC) From: Achim Gratz To: cygwin-apps@cygwin.com Subject: Re: unison-2.48 build fails with latest ocaml and flexdll (attn: Achim) References: <18002c59-1b77-5912-f5fa-c3e39540b8d8@gmail.com> <41t6ibtbcojbmar8blrc80fk8tmplbbuj3@4ax.com> <41t6ibtbcojbmar8blrc80fk8tmplbbuj3-e09XROE/p8c@public.gmane.org> <5723B6C7.8090100@maxrnd.com> <2169ibt34ifh3cr6s63bovbnb3ed485lj1@4ax.com> <5mt0bcpirrh22jobp0qtm5q0hsfqqncjt8@4ax.com> <5mt0bcpirrh22jobp0qtm5q0hsfqqncjt8-e09XROE/p8c@public.gmane.org> <6add10ed-c67a-d553-ddb6-2d56f20af148@cygwin.com> <252tdclpluck0js4vmvbjtbs8sr2r7v2eg@4ax.com> <841a950b-57dd-337f-4eb9-f76f053f0c06@cygwin.com> Date: Mon, 03 Apr 2017 06:23:00 -0000 In-Reply-To: <841a950b-57dd-337f-4eb9-f76f053f0c06@cygwin.com> (Yaakov Selkowitz's message of "Sun, 2 Apr 2017 21:23:15 -0500") Message-ID: <87h926m2ll.fsf@Rainer.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-VADE-STATUS: LEGIT X-VADE-SCORE: 0 X-VADE-REASON: gggruggvucftvghtrhhoucdtuddrfeelhedrleejgdeitdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucevfgfuvffqoffgtfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpeettghhihhmucfirhgrthiiuceoufhtrhhomhgvkhhosehnvgigghhordguvgeqnecuffhomhgrihhnpehsthhrohhmvghkohdrnhgvthenucfkphepledurdegjedrheegrddvvdeknecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopefivghrthhruhgupdhinhgvthepledurdegjedrheegrddvvdekpdhmrghilhhfrhhomhepufhtrhhomhgvkhhosehnvgigghhordguvgdprhgtphhtthhopegthihgfihinhdqrghpphhssegthihgfihinhdrtghomh X-SW-Source: 2017-04/txt/msg00004.txt.bz2 Yaakov Selkowitz writes: > Achim, I think /usr/lib/ocaml needs to be ignored by autorebase; > flexlink'ed DLLs are loaded very differently, and rebasing seems to > break them. I will be on a business trip for the rest of the week. I can look at excepting them, but I'd rather introduce a more general mechanism for such things, I'll have to think about that. The question is however if these actually work when they're not rebased while some other library occupies their address space. I suspect that'd fail unless they are ASLR enabled. Plus we need to make sure they don't slip into the rebase space and block another Cygwin DLL trying to load later. Can somebody please test that? While on the topic of ASLR, I've been experimenting with generally making all (or most) Cygwin DLL ASLR enabled and avoid rebasing altogether (that was triggered by some 32bit machine that I couldn't switch over to a 3GB user VM for some reason). It seems like that should work, although it's unclear which subset of libraries must load to fixed addresses (rebased or not). Also, I'm not quite certain which address space ASLR will use and if there's a "safe" space that it will never occupy. Unfortunately I haven't had much time to spend on that, so if anybody feels inclined to try it I'll see if I can put something into autorebase to support it. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Waldorf MIDI Implementation & additional documentation: http://Synth.Stromeko.net/Downloads.html#WaldorfDocs