X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 17CFE3858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1708424144; bh=0EtgdVgHVFogVWX0NxygmpvNHt53EX/DB8hErzf2sCA=; 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=FCOzy0kf4w//vfd7I948+Yg7UCTwvJY0ugu6rrPwmAVwVWbrMSO66gTUEzJV1Yr/g 1b+Cfizbdg1E9wh/okltZvORkU98LlBRXr3B10sRT3j8+CJGvVS4F5meTGxVppyNNq yymDhGCJaCz/4UD8D6osjUiDvXuH+Wy1cMbcm/rs= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8A6243858D38 Date: Tue, 20 Feb 2024 11:15:16 +0100 To: cygwin AT cygwin DOT com Subject: Re: binutils >= 2.41 makes .rsrc section read-only Message-ID: Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Corinna Vinschen via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Corinna Vinschen Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On Feb 19 21:41, Jeremy Drake via Cygwin wrote: > This is probably the right thing to do, but breaks building msys2-runtime > (read: cygwin) 3.3, because the _cygheap_start symbol is actually in the > .rsrc section and code very early attempts to memset _cygheap_start. > Couple of questions: > > 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? 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