From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 3F6E4AC1CBC for ; Mon, 4 Nov 2024 21:17:48 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=sNMWbHqGvEm2dBCS58tjPkNe00u2smbBNTS5g0T0Mq0=; c=relaxed/simple; d=groups.io; h=DKIM-Filter:Message-ID:Date:MIME-Version:User-Agent:Subject:To:References:From:In-Reply-To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20240830; t=1730755068; v=1; x=1731014266; b=OXkIbJUB0JXnOd/12Yd95+GxjnVqjDsqU++MksvioIN+X2ulqJRpgwn+gMwESWz1NLNyv/eU oGOhFt+uHi99MNewWdDc1Ktz58P7MdvFW1hIiM3YzE0BrwVsPqG9/QxcMWLubuKdSRYbV343ddn oArEpnvLd5aF7xvZuSinZgo7aCQ0egdB6lIlHX79/V05aa4NQ8kLTiYpWUdd1pC8XTh/F0g3Nkv isS8vDLLVDUaFqdPnt6W4u3VNbQGsmTIJkZSo3e/zC/SqWUYhw259pxxdiyZthVMc93qEtTBn/r fWoDGnxrQTsdl6MlGzScTbQ17AkblqgGFiZBdeaD7GSLA== X-Received: by 127.0.0.2 with SMTP id 7ZS0YY7687511xNrFRrFVTTY; Mon, 04 Nov 2024 13:17:46 -0800 X-Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mx.groups.io with SMTP id smtpd.web10.2015.1730755065856709430 for ; Mon, 04 Nov 2024 13:17:45 -0800 X-Received: from [10.137.194.171] (unknown [131.107.159.43]) by linux.microsoft.com (Postfix) with ESMTPSA id 0A80D2121ECB; Mon, 4 Nov 2024 13:17:45 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 0A80D2121ECB Message-ID: <1e5bc28e-380c-49d2-b431-88c20b0e8568@linux.microsoft.com> Date: Mon, 4 Nov 2024 13:17:44 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [edk2-devel] MicrovmX64, "Did not find any '.text' section" To: devel@edk2.groups.io, kraxel@redhat.com, Leif Lindholm References: <1cac29cf-a460-421b-bb76-b71416fb5274@quicinc.com> <2x5cykaf7erih2e5nkkdq5bragkn756pjhudetcphqzfq2fujo@4h7v7uxp2mta> From: "Oliver Smith-Denny" In-Reply-To: <2x5cykaf7erih2e5nkkdq5bragkn756pjhudetcphqzfq2fujo@4h7v7uxp2mta> Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Mon, 04 Nov 2024 13:17:45 -0800 Resent-From: osde@linux.microsoft.com Reply-To: devel@edk2.groups.io,osde@linux.microsoft.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: zbhqCNHdkFzKXA3ZElNXopyHx7686176AA= Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240830 header.b=OXkIbJUB; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=linux.microsoft.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io On 11/1/2024 2:55 AM, Gerd Hoffmann wrote: > On Thu, Oct 10, 2024 at 04:52:48PM +0100, Leif Lindholm wrote: >> Hi Gerd, others, >> >> While working on the FdtLib migration to the submodule variant, I decide= d to >> at least try to test build MicrovmX64 ... but I'm failing. >> >> Both clang and gcc builds bail out at a GenFw invocation to generate >> ResetVector.efi due to "Did not find any '.text' section". (Assert on li= ne >> 938 of Elf64Convert.c.) So I was hitting this also when doing dynamic stack cookies and trying different ways to make ResetVector be okay being linked to the null stack cookie lib. There is something that BaseTools doesn't do well when ResetVector is linked against libraries, are you adding a library linkage here (say a NULL lib applied globally)? To fix this for stack cookies, my PR converts ResetVector to be USER_DEFINED so that BaseTools will not link NULL libs against it. Worth a shot seeing if making that change (you need to change the RESETVECTOR rule in the FDF from SEC to USER_DEFINED also) makes a difference. If this is not being caused by a null library linkage, then I have no idea what is happening :). Oliver -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#120713): https://edk2.groups.io/g/devel/message/120713 Mute This Topic: https://groups.io/mt/108931674/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-