From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <bounce+27952+120742+7686176+12367111@groups.io>
Received: from mail05.groups.io (mail05.groups.io [45.79.224.7])
	by spool.mail.gandi.net (Postfix) with ESMTPS id 47C25941AE2
	for <rebecca@openfw.io>; Wed,  6 Nov 2024 16:32:21 +0000 (UTC)
DKIM-Signature: a=rsa-sha256; bh=/vYIAGtQixFQz1oNFOZJ0JnCovO6PjMXDRnTHFBR7S0=;
 c=relaxed/simple; d=groups.io;
 h=DKIM-Filter:Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc: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=1730910740; v=1; x=1731169939;
 b=pi9nJvzgSHwvw1d6Nc2GWVKTWVlJ0fqK2DjfDHuwQd/IT8JP8jffEMQm65GO9p3K1DWWg1O4
 EwjWCRmg6sVMnOCATCngmLe38nZuyX5qt7KAQNB73mrsIO/eJ+a17Hg9cAoUGTjZp+KxnFsP2tx
 LsTSSksttBABS8p15FnQ4dTCh3YIAIpQuDbRrp4vkQ5p4Zm6UfI3Nzmi/6IT8C2m4FK7EURSkL1
 dRkULOG88snh9j3BzoKdH+P9tm4Eg0J5LTde+T2+9ajc+J3vDYANsgaaQ6TkbDJmnNeEnzedbSz
 9k70EffBWoioGch/G32Ztl0wyx8laPsp0OzXEbWsj4TOw==
X-Received: by 127.0.0.2 with SMTP id ikmxYY7687511x1bbuOegnIE; Wed, 06 Nov 2024 08:32:19 -0800
X-Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182])
 by mx.groups.io with SMTP id smtpd.web11.50023.1730910738971642817
 for <devel@edk2.groups.io>;
 Wed, 06 Nov 2024 08:32:19 -0800
X-Received: from [10.137.194.171] (unknown [131.107.159.43])
	by linux.microsoft.com (Postfix) with ESMTPSA id E95F0212B5C7;
	Wed,  6 Nov 2024 08:32:17 -0800 (PST)
DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com E95F0212B5C7
Message-ID: <58a16a53-f3a3-4f5b-a046-5f62850256f5@linux.microsoft.com>
Date: Wed, 6 Nov 2024 08:32:17 -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, leif.lindholm@oss.qualcomm.com
Cc: kraxel@redhat.com, Leif Lindholm <quic_llindhol@quicinc.com>
References: <1cac29cf-a460-421b-bb76-b71416fb5274@quicinc.com>
 <2x5cykaf7erih2e5nkkdq5bragkn756pjhudetcphqzfq2fujo@4h7v7uxp2mta>
 <1e5bc28e-380c-49d2-b431-88c20b0e8568@linux.microsoft.com>
 <CAD=n3R17qXMB2W09xkku+gL3rQX7rzE8oeRxbW588VbDcaBsNg@mail.gmail.com>
From: "Oliver Smith-Denny" <osde@linux.microsoft.com>
In-Reply-To: <CAD=n3R17qXMB2W09xkku+gL3rQX7rzE8oeRxbW588VbDcaBsNg@mail.gmail.com>
Precedence: Bulk
List-Subscribe: <mailto:devel+subscribe@edk2.groups.io>
List-Help: <mailto:devel+help@edk2.groups.io>
Sender: devel@edk2.groups.io
List-Id: <devel.edk2.groups.io>
Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io
Resent-Date: Wed, 06 Nov 2024 08:32:19 -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: <https://edk2.groups.io/g/devel/leave/12367111/7686176/1913456212/plugh>
X-Gm-Message-State: u73q1vxp4P2Kb6MSFbepXf1yx7686176AA=
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=pi9nJvzg;
	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/6/2024 3:41 AM, Leif Lindholm via groups.io wrote:
> No, I mean I'm building current edk2 HEAD unmodified, with current
> in-tree BaseTools.
> With GCC 14.2.0 using GCC profile, and clang 16.0.2 using CLANGDWARF prof=
ile.
> (On Debian "testing".)
>=20

Hmm, that is odd indeed.

>> 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 :).
>=20
> I can confirm the above workaround fixes the build for both toolchain pro=
files.
> Thanks a lot, that means I can get back to verifying my actual changes :)
>=20

Glad to hear it! If you want to review my PR where I change the type, it
is here: https://github.com/tianocore/edk2/pull/6381. It is a large PR
to bring in the dynamic stack cookies, too, I can split it into two if
desired (waiting to hear back from Mike Kinney on whether he wants it in
two).

Thanks,
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 (#120742): https://edk2.groups.io/g/devel/message/120742
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-