From nobody Tue Dec 16 16:41:21 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 16329C4167B for ; Fri, 8 Dec 2023 18:13:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233790AbjLHSND (ORCPT ); Fri, 8 Dec 2023 13:13:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1574152AbjLHSMy (ORCPT ); Fri, 8 Dec 2023 13:12:54 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D8F790; Fri, 8 Dec 2023 10:13:00 -0800 (PST) Date: Fri, 08 Dec 2023 18:12:58 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1702059179; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MgW3CFoSiwuqrhvkt6W1AeU1bA24onzZkPQaIFSDGZQ=; b=0raww4mw+akTKeGocQMchd5CHkIapgeXx5ZpY9/43iybJDJDv1CMxN4vGs/ux12vEgOkOR dmfPZ4i8vrgoxVMrXUxQBRVzm/sHA0A8QK8hAGsfmgynLGV1hj8dQzHtFUmXSZCBYC6AlQ dtL2PTdxvSTBCDc1e5YB5c85aJ6UQtRF1BHtTXtSn43idock/m//p6l2SRZM1d6xoF2rGI pa3+/+aN3NoWoEZqbu0uzKqfOOXSJicQgahQlETbZycttLf1oTLWGThIZEwYWffe/MEc6p PK+2MW+XGydkY/nnGIJxKO4Fk25dGpFpi0mNLZpFlI0PDoOBdj5sSh3r9yr+mg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1702059179; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MgW3CFoSiwuqrhvkt6W1AeU1bA24onzZkPQaIFSDGZQ=; b=dLYtteuJO1ERFVlksgLdHUe+orYdTVqbZupjdYMt7xI0hc1QEZ93Br9I/e+dEFxYY72wGi vd93KsjY+OJES8BA== From: "tip-bot2 for Jo Van Bulck" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/sgx] selftests/sgx: Fix linker script asserts Cc: Jo Van Bulck , Dave Hansen , Jarkko Sakkinen , x86@kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-ID: <170205917850.398.16478105526810209721.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/sgx branch of tip: Commit-ID: 9fd552ee32c6c1e27c125016b87d295bea6faea7 Gitweb: https://git.kernel.org/tip/9fd552ee32c6c1e27c125016b87d295be= a6faea7 Author: Jo Van Bulck AuthorDate: Thu, 05 Oct 2023 17:38:50 +02:00 Committer: Dave Hansen CommitterDate: Fri, 08 Dec 2023 10:05:27 -08:00 selftests/sgx: Fix linker script asserts DEFINED only considers symbols, not section names. Hence, replace the check for .got.plt with the _GLOBAL_OFFSET_TABLE_ symbol and remove other (non-essential) asserts. Signed-off-by: Jo Van Bulck Signed-off-by: Dave Hansen Reviewed-by: Jarkko Sakkinen Link: https://lore.kernel.org/all/20231005153854.25566-10-jo.vanbulck%40cs.= kuleuven.be --- tools/testing/selftests/sgx/test_encl.lds | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tools/testing/selftests/sgx/test_encl.lds b/tools/testing/self= tests/sgx/test_encl.lds index 62d3716..6ffdfc9 100644 --- a/tools/testing/selftests/sgx/test_encl.lds +++ b/tools/testing/selftests/sgx/test_encl.lds @@ -35,8 +35,4 @@ SECTIONS } } =20 -ASSERT(!DEFINED(.altinstructions), "ALTERNATIVES are not supported in encl= aves") -ASSERT(!DEFINED(.altinstr_replacement), "ALTERNATIVES are not supported in= enclaves") -ASSERT(!DEFINED(.discard.retpoline_safe), "RETPOLINE ALTERNATIVES are not = supported in enclaves") -ASSERT(!DEFINED(.discard.nospec), "RETPOLINE ALTERNATIVES are not supporte= d in enclaves") -ASSERT(!DEFINED(.got.plt), "Libcalls are not supported in enclaves") +ASSERT(!DEFINED(_GLOBAL_OFFSET_TABLE_), "Libcalls through GOT are not supp= orted in enclaves")