X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D07763858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1708407689; bh=VafGpCObjco1ZPSf2gQQ9E0T6XV1MFT8Tsb9eOMGaKA=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=n+vPO5M7C6wYBmM5fggg02kvJffYihV5Er2xkLuJ7FWy+iH4Hr2V3XKA/EPmHu0Nr 0sZiabuzQxXgvcSza2SNYkzWQ7OyNGUVy9I+eiFEUSB5K0MWfukgqqZTSP0peOIfRh kW1zN7hQCB5tNiMR+qUzbH0Pb1L+tEOuzwdFjVOk= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1A7393858D20 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1A7393858D20 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708407669; cv=none; b=liH1Ng5v9jlbB85pPEpfPWkaECWyNvB2/zpYQoRgkjkvNrzBAarPphBK5OVE9HwfR1+22pVuRR6WmPhnK4cM3aDcNk3zpeJM/pNLauzHCyFG+IyrIpMo16cJOlprX3/rGyHYL6wBKoLql5gLeTX8ovejMbadc2KLECVlHfKBmLs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708407669; c=relaxed/simple; bh=dDpzAlcyXK1OrgZRHPagnklVGr3Gx5pIcuh2BHB+vAU=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=rjv5rMUQJmaUtaGjObt4uJuDlipQWK8kyyXMW7aayfFpyPFR4KIpheYnclvAl2M+8V5Kazgo49OhzQUvFCRV2BhPE4LsSL+++wMGbXD2zZWx6pou6zjMAjqPKDWYlNOBKxrNojG2IJdQGsPUKv9vyv5H/Fkt50yojOwa41iydJw= ARC-Authentication-Results: i=1; server2.sourceware.org Date: Mon, 19 Feb 2024 21:41:05 -0800 (PST) X-X-Sender: jeremyd AT resin DOT csoft DOT net To: cygwin AT cygwin DOT com Subject: binutils >= 2.41 makes .rsrc section read-only Message-ID: 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 List-Archive: List-Post: List-Help: List-Subscribe: , From: Jeremy Drake via Cygwin Reply-To: Jeremy Drake Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" 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? 2) how could I make the .rsrc section read/write again? I attempted to use objcopy --set-section-flags .rsrc=contents,alloc,load,data a.dll b.dll (or a.o b.o with .o files straight out of windres), but it does not seem to actually clear the readonly flag. I was able to set the 'code' flag, so it is actually finding the right section. See also https://github.com/msys2/msys2-runtime/issues/200 -- 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