From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by mx.groups.io with SMTP id smtpd.web11.27947.1680188696558314256 for ; Thu, 30 Mar 2023 08:04:56 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=C1YlgMdb; spf=pass (domain: kernel.org, ip: 139.178.84.217, mailfrom: ardb@kernel.org) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0DDF2620A0 for ; Thu, 30 Mar 2023 15:04:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6BE53C4339E for ; Thu, 30 Mar 2023 15:04:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680188695; bh=GGUWnfQNEj+fAAMDI/Vy/QGBT/uYtkjfiMiKBg3f3XM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=C1YlgMdbbWYeMqLTSA/cABBieFURVzZst+c4hsI7EivwDw0bQvp9QewzyPXp7Cz6e 1v4SRMdH9nSkF7LR5UDGqUzxsxqHKfJmEK8u0olKll/oeekCNrnAee/zJ5+SlZf+Qi ttnKsGjTD/30jdh5H8PTqwn6o4Bb8cGtz9PFAQwiZooGqp3sxWs7Y/2W9oG4fO6g+h HnHNedscfS2soScQbOXLNI5ZeErhGlNnk0XEI7pxDLkkffUznWDEOkzJH3RQoXVI8i SukCqX9nDy3eFotaohK4ryBX3ZOkgaSvmZ+X+VWE775eaQkDVk65V1tHhqdhT+nicz VlNWqtHLaQbmw== Received: by mail-lf1-f41.google.com with SMTP id x17so24935629lfu.5 for ; Thu, 30 Mar 2023 08:04:55 -0700 (PDT) X-Gm-Message-State: AAQBX9fjnAXrH3McTS9SvM5EcHY1paEZ0TvdhiXlhd0+WWrRtVzkEVkQ EzZK+gcgSRYxlDdOBPGw9X3yr/8+shl7uH4Lmfc= X-Google-Smtp-Source: AKy350ZJzGat/R1H6+WpQ3QmjGry3FQmcO8lur1c6u7TnS/0i0nLAJ0O8M4wT7HbpCRV0k3tgqJw7foIByC27JNG82o= X-Received: by 2002:ac2:52b8:0:b0:4e9:d81f:9a8a with SMTP id r24-20020ac252b8000000b004e9d81f9a8amr6617188lfm.9.1680188693387; Thu, 30 Mar 2023 08:04:53 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Ard Biesheuvel" Date: Thu, 30 Mar 2023 17:04:42 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [edk2-devel] Is Xcode5ExceptionHandlerAsm.nasm still needed? To: "Ni, Ray" Cc: "devel@edk2.groups.io" , Rebecca Cran , Andrew Fish , "Kinney, Michael D" , "Liu, Zhiguang" Content-Type: text/plain; charset="UTF-8" On Thu, 30 Mar 2023 at 16:25, Ni, Ray wrote: > > I am afraid they are not template code. > That means if nx is set for data section, they can not be executed. > Currently, we fix up the entries by writing to the .text section at runtime, so NX seems out of scope in any case. Someone should check Xcode5, but for LLD, adding -Wl,-z,notext is sufficient to work around the error.