From patchwork Fri Dec 8 18:13:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 175989 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp5632101vqy; Fri, 8 Dec 2023 10:13:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IG6nsRrfI2SyXnW4HTcGHdgEuM5f2j2IipmVd1hEy4Cd+IueDnZAwhtDNrx4ewjKMM/Nc7m X-Received: by 2002:a05:6a20:4287:b0:186:e53:b64b with SMTP id o7-20020a056a20428700b001860e53b64bmr526613pzj.47.1702059213664; Fri, 08 Dec 2023 10:13:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702059213; cv=none; d=google.com; s=arc-20160816; b=NdGBRggGUT2JU8779e2DcPnHSrGW3HjCE8uDuJwCeameFofEFT4M6rcWRED2XMbEVA ixpmgbFz/RRLICKN/pNIFiQ9SH6lP+Kg5Ht4X+NwlUdwaIq9B5v0uhJ3xJDdbD0L6QDk P9RZ2Ui4RR4eVbQ/VNnaSBKPPJ8UBRAMXN08LI4Uv4TqgY4aRw7vErSaaNjljIVbGCII xzEyfQ6kt6tLa68ASQ/G5Msdlg9W9DoUmiS+ztmAk6ZBcCr+R+VnXLRoijIyrBmVcz3E apwtK3FV9Rz4xZIuobdoYcAICwD++HZOJWgLKHhG2hS4SK3e1ZqqrdOxwRuHIdKH7s7V uWbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:cc:subject:to:reply-to:sender:from :dkim-signature:dkim-signature:date; bh=xgqlJDka6FcT4G5ZGjIEyqWOQ+mW8Tn9OrL4YvFsFZI=; fh=/n9XlXj1IKUyPlyHECKcBKWdQ7usrdaKCfKX5noQGgg=; b=zInvFBh/won1peqvruzao1HfM3CBqw7bEEGAwFzDHeDPakuKGIk7FR8cJvI8n5TbwZ tJzvakWAelmrc1YWvHFhHa5vvQlqHnt0Z+tef/i8/xSleY7sruSFYPRoX/Wgr9bKk0dS m6JR79qLH24mFNU/NZJbhtBRYstos8TvlsUY+qtrmampnyTRBoNg7ONFJD/GtARIszoK W3RsDt7yrnnzYNrXiLFJnfXq4Uy5/cipji1ckzGjB/d7u0R3WlHUoDOdpam3v/ODqy5R mYqA7YVAOw4igmAVdel07BEiBLkgNgjknuODyku/RNJwzja6Rb8CxFxcRECyTqjGuaAE DAZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ioFe7HA1; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id s16-20020a632150000000b005c2791fedbasi1841996pgm.124.2023.12.08.10.13.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 10:13:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ioFe7HA1; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 6AE0680FDDFB; Fri, 8 Dec 2023 10:13:32 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1574494AbjLHSNR (ORCPT + 99 others); Fri, 8 Dec 2023 13:13:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1574529AbjLHSM5 (ORCPT ); Fri, 8 Dec 2023 13:12:57 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4381F1729; Fri, 8 Dec 2023 10:13:04 -0800 (PST) Date: Fri, 08 Dec 2023 18:13:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1702059182; 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=xgqlJDka6FcT4G5ZGjIEyqWOQ+mW8Tn9OrL4YvFsFZI=; b=ioFe7HA1s+roqklmfgQY/Q3v6uvsMnf/QWV2LEXd/+bonvmik8CRUDCIkp0O8x0kfiuHcL DSWZlNIyyFqIAYzawGKc/Q6uiPuMnJcs2WCi9hGooBRAZGSbDy/7E3Vk3kLCf99FbYyeHZ 3wjj3Cq9kq+rOrL1X4hghCQMbf7o4r+t3F3neNgdZ1W9DN6TJ8/wm6h37F8PzpGFdsAD36 OzYi7hVdDfEWUhuPZF7LhPD9M3ilWyKF82QLKQs8sQUKAiruxGurh8w2lUDNChfScm1Fom oVthNdLt1Kb1pc5T0/nP5kYFLQdvNJfECXlxBqCU9XZd36Lsz5aD8iqk3myglA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1702059182; 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=xgqlJDka6FcT4G5ZGjIEyqWOQ+mW8Tn9OrL4YvFsFZI=; b=L4+5Z+giAfgkjQQMsxw6Ky9pGA+Kimc0tvE4meP5uTa6l/ZjAHwz4OXNs6B0L8V2KmEncp QNwNRKmy1J7VVBAQ== 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: Separate linker options Cc: Jo Van Bulck , Dave Hansen , Jarkko Sakkinen , x86@kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-ID: <170205918223.398.8235125463491202686.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 08 Dec 2023 10:13:32 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784738441795551603 X-GMAIL-MSGID: 1784738441795551603 The following commit has been merged into the x86/sgx branch of tip: Commit-ID: f79464658d858e07af0c4c9b30f5baedeeae0c04 Gitweb: https://git.kernel.org/tip/f79464658d858e07af0c4c9b30f5baedeeae0c04 Author: Jo Van Bulck AuthorDate: Thu, 05 Oct 2023 17:38:45 +02:00 Committer: Dave Hansen CommitterDate: Fri, 08 Dec 2023 10:05:26 -08:00 selftests/sgx: Separate linker options Fixes "'linker' input unused [-Wunused-command-line-argument]" errors when compiling with clang. Signed-off-by: Jo Van Bulck Signed-off-by: Dave Hansen Reviewed-by: Jarkko Sakkinen Link: https://lore.kernel.org/all/20231005153854.25566-5-jo.vanbulck%40cs.kuleuven.be --- tools/testing/selftests/sgx/Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tools/testing/selftests/sgx/Makefile b/tools/testing/selftests/sgx/Makefile index 50aab6b..dcdd04b 100644 --- a/tools/testing/selftests/sgx/Makefile +++ b/tools/testing/selftests/sgx/Makefile @@ -12,9 +12,11 @@ OBJCOPY := $(CROSS_COMPILE)objcopy endif INCLUDES := -I$(top_srcdir)/tools/include -HOST_CFLAGS := -Wall -Werror -g $(INCLUDES) -fPIC -z noexecstack -ENCL_CFLAGS := -Wall -Werror -static -nostdlib -nostartfiles -fPIC \ +HOST_CFLAGS := -Wall -Werror -g $(INCLUDES) -fPIC +HOST_LDFLAGS := -z noexecstack -lcrypto +ENCL_CFLAGS += -Wall -Werror -static -nostdlib -nostartfiles -fPIC \ -fno-stack-protector -mrdrnd $(INCLUDES) +ENCL_LDFLAGS := -Wl,-T,test_encl.lds,--build-id=none TEST_CUSTOM_PROGS := $(OUTPUT)/test_sgx TEST_FILES := $(OUTPUT)/test_encl.elf @@ -28,7 +30,7 @@ $(OUTPUT)/test_sgx: $(OUTPUT)/main.o \ $(OUTPUT)/sigstruct.o \ $(OUTPUT)/call.o \ $(OUTPUT)/sign_key.o - $(CC) $(HOST_CFLAGS) -o $@ $^ -lcrypto + $(CC) $(HOST_CFLAGS) -o $@ $^ $(HOST_LDFLAGS) $(OUTPUT)/main.o: main.c $(CC) $(HOST_CFLAGS) -c $< -o $@ @@ -45,8 +47,8 @@ $(OUTPUT)/call.o: call.S $(OUTPUT)/sign_key.o: sign_key.S $(CC) $(HOST_CFLAGS) -c $< -o $@ -$(OUTPUT)/test_encl.elf: test_encl.lds test_encl.c test_encl_bootstrap.S - $(CC) $(ENCL_CFLAGS) -T $^ -o $@ -Wl,--build-id=none +$(OUTPUT)/test_encl.elf: test_encl.c test_encl_bootstrap.S + $(CC) $(ENCL_CFLAGS) $^ -o $@ $(ENCL_LDFLAGS) EXTRA_CLEAN := \ $(OUTPUT)/test_encl.elf \