From nobody Tue Dec 16 12:21:18 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 01E1DC4167B for ; Fri, 8 Dec 2023 18:13:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1574470AbjLHSMz (ORCPT ); Fri, 8 Dec 2023 13:12:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229872AbjLHSMv (ORCPT ); Fri, 8 Dec 2023 13:12:51 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FCB5E9; Fri, 8 Dec 2023 10:12:58 -0800 (PST) Date: Fri, 08 Dec 2023 18:12:56 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1702059176; 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=19gGXCN1G7w/Flhq+ObJ4E6Xtc/2cqhMNyyS5ds7U3c=; b=DKGBfBYk4iqAsUEKLMzPdUhHHgao/m6VbinAkCWUgI/dpUOI/tmBjurjaJpV7oRC/JVaj0 KFb6x29ah0LHK/0N5WrtPWKApISH78UGOA3qZp1Eye4QUc6JBb6JBO++JnbZSnilokrzeW qGJIYvGLmcJIyoWQNphqbtSRsT3iepco4kEawLQDTj5wnaRJc8J6Gg3zO41pmrISBpVy1J C3Bk14j2OMlywRfELUA+eFy4r7AVA+MEBf7K+5mtPAdc/wuYHPEyLyQYClYR7RYbA5JhDS XzzsvV8Zn6Sj6OWPhPu6yHo2WvkksxurT+OqGliBt9o74FVYy/EaZYnIYhm6Ag== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1702059176; 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=19gGXCN1G7w/Flhq+ObJ4E6Xtc/2cqhMNyyS5ds7U3c=; b=tyA03ph3/wdj3TCZ4CPLeu+SeXDOp/7IVTf6WCoCGOtxcl4TWbr250pnSqdz0QJ3jyHeiZ sHvUz51tgy/Be/AQ== 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: Discard unsupported ELF sections Cc: Jo Van Bulck , Dave Hansen , Jarkko Sakkinen , x86@kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-ID: <170205917625.398.13315444953275165354.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: ec44ca1e34bc3a9864a8c1bf8636066ec6d5d2e5 Gitweb: https://git.kernel.org/tip/ec44ca1e34bc3a9864a8c1bf8636066ec= 6d5d2e5 Author: Jo Van Bulck AuthorDate: Thu, 05 Oct 2023 17:38:53 +02:00 Committer: Dave Hansen CommitterDate: Fri, 08 Dec 2023 10:05:28 -08:00 selftests/sgx: Discard unsupported ELF sections Building the test enclave with -static-pie may produce a dynamic symbol table, but this is not supported for enclaves and any relocations need to happen manually (e.g., as for "encl_op_array"). Thus, opportunistically discard ".dyn*" and ".gnu.hash" which the enclave loader cannot handle. Signed-off-by: Jo Van Bulck Signed-off-by: Dave Hansen Reviewed-by: Jarkko Sakkinen Link: https://lore.kernel.org/all/20231005153854.25566-13-jo.vanbulck%40cs.= kuleuven.be --- tools/testing/selftests/sgx/test_encl.lds | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/sgx/test_encl.lds b/tools/testing/self= tests/sgx/test_encl.lds index 333a3e7..ffe851a 100644 --- a/tools/testing/selftests/sgx/test_encl.lds +++ b/tools/testing/selftests/sgx/test_encl.lds @@ -33,6 +33,8 @@ SECTIONS *(.note*) *(.debug*) *(.eh_frame*) + *(.dyn*) + *(.gnu.hash) } }