delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org 23F6F3858D34 |
DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; |
s=default; t=1708523137; | |
bh=xnAB1Aie+Q6xpewfmvZ75Yj5GJjcSJbRppF7CVly9Ug=; | |
h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: | |
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: | |
From; | |
b=l/R6PnR37EFz5FY9fihnBlsdUsg/3Jsqklt9wxYYAfoxc/DNXar4bgzrsmLawQEak | |
AmJexjUWgbBNIim/DcKCHd/SmB5rO90k99AXsTnQHEm4GnHtz8XRTsvaTK7+fD8jJk | |
7oHo9SzyPTycvC+0p9jxDkqB7S877yOHtMwp+xDY= | |
X-Original-To: | cygwin AT cygwin DOT com |
Delivered-To: | cygwin AT cygwin DOT com |
DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org 3E6563858D20 |
Date: | Wed, 21 Feb 2024 14:45:10 +0100 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: binutils >= 2.41 makes .rsrc section read-only |
Message-ID: | <ZdX-Zns0NCc3aPOs@calimero.vinschen.de> |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <alpine DOT BSO DOT 2 DOT 21 DOT 2402192133050 DOT 95909 AT resin DOT csoft DOT net> |
<ZdR7tLdneF0Eode_ AT calimero DOT vinschen DOT de> | |
<alpine DOT BSO DOT 2 DOT 21 DOT 2402202132090 DOT 95909 AT resin DOT csoft DOT net> | |
<ZdW0AIGlzheTdrOA AT calimero DOT vinschen DOT de> | |
MIME-Version: | 1.0 |
In-Reply-To: | <ZdW0AIGlzheTdrOA@calimero.vinschen.de> |
X-BeenThere: | cygwin AT cygwin DOT com |
X-Mailman-Version: | 2.1.30 |
List-Id: | General Cygwin discussions and problem reports <cygwin.cygwin.com> |
List-Unsubscribe: | <https://cygwin.com/mailman/options/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe> | |
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: | Corinna Vinschen via Cygwin <cygwin AT cygwin DOT com> |
Reply-To: | cygwin AT cygwin DOT com |
Cc: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
Errors-To: | cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com |
Sender: | "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com> |
X-MIME-Autoconverted: | from base64 to 8bit by delorie.com id 41LDjc84023401 |
On Feb 21 09:27, Corinna Vinschen via Cygwin wrote: > On Feb 20 21:39, Jeremy Drake via Cygwin wrote: > > On Tue, 20 Feb 2024, Corinna Vinschen wrote: > > > > > On Feb 19 21:41, Jeremy Drake via Cygwin wrote: > > > > 1) is there actually a good reason that _cygheap_start is in the .rsrc and > > > > not the .cygheap section? > > > > > > As you know we got rid of this way to define the cygheap, but > > > _cygheap_start was just defined this way so it's the address marking > > > the start address of the cygheap. > > > > > > It was just the way it was. It's probably just as well to move > > > > > > _SYM (_cygheap_start) = .; > > > > > > to the begining of the .cygheap section. Did you try? > > > > I hadn't; I have now and it seems to work fine. > > I'm glad to read that. > > > I basically assumed there > > was some reason I wasn't aware of for putting it in the .rsrc section, so > > focused more on trying to figure out how to get binutils to clear the > > readonly section flag. When I couldn't figure that out, I figured I'd ask > > here both about the "institutional knowledge" if there was a known reason > > why it needed to be in the .rsrc section and because I figured some people > > knowledgable in binutils pe stuff might also read this and be able to give > > me another idea on making the .rsrc section read/write again if it did > > need to stay in that section. > > I think there was some historical reason to put in .rsrc, or rather, > into the section preceeding .cygheap, but I don't remember what it was. > Might have had something to do with stripping the cygwin DLL or some > such... Actually, searching the history shows commit ce95c6407ef6a from 2005-06-01, which moves the definition of __cygheap_start from the .cygheap section to the .idata section. However, the commit message only contains the hint "cygwin.sc: Modernize. [...]" There's no other reason given ¯\_(ツ)_/¯ Corinna -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |