delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/02/21/00:53:00

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2D2893858C66
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1708494000;
bh=IZyf1c+Xs/jOXnYUAiMRoSL2sPikDAZmuS1MGsVR288=;
h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=Up8Kvf3Xl3rBUcP4FNbDCyWYfYpoRI3XhnspmpDX1/ag7u07tXNy16SKtwUDkRDxB
vP94QOXOqU7Gcsc4FEkM/bTm9BrvD2Y81smTZpdJdbGMqkwZlvZ9HOXyMZ9rNhqKtH
3uYs33i8rUeW2pUtTsuVMUzfcUfzU4LovI2B55sY=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CB2F03858D35
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CB2F03858D35
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708493974; cv=none;
b=XPt9TYTsfXQwslbRKJGiUuci7kdaWH/K9/Hf0zHNEczEh0GIVmK6xZEKobfrIxFKCTOyTmKHVGDeR/Oao7FylZG1U+iIArrUFcLzWmcjjD8Lfx1POLLcf8xZw/LylKQc8ZN/ZutO58L6Kwoy9GnBBfQWkPnBTxyRSIWFXfW4kjs=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1708493974; c=relaxed/simple;
bh=D3vuBNHcJSJTouTUYT+RZd14Ha6LkbjZJUIedxSYCxA=;
h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version;
b=CViQaIi+U2xx+tYM862t/rI5fCGFQgAgNMXJ6OyC4kye78Jq7d/RHx7YtBpIVyljmpfiRN729BwpitlinAprtk0Kz5gjAcdD9bVIj2344lW7F6JtYQzKVdP5JiOBrruXPIAji2VWmeYSSc/Ba/eawWhd1xOZFv/WYzcGxfWChgk=
ARC-Authentication-Results: i=1; server2.sourceware.org
Date: Tue, 20 Feb 2024 21:39:31 -0800 (PST)
X-X-Sender: jeremyd AT resin DOT csoft DOT net
To: cygwin AT cygwin DOT com
Subject: Re: binutils >= 2.41 makes .rsrc section read-only
In-Reply-To: <ZdR7tLdneF0Eode_@calimero.vinschen.de>
Message-ID: <alpine.BSO.2.21.2402202132090.95909@resin.csoft.net>
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>
User-Agent: Alpine 2.21 (BSO 202 2017-01-01)
MIME-Version: 1.0
X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_PASS, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
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: Jeremy Drake via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Jeremy Drake <cygwin AT jdrake 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>

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 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.


-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019