From patchwork Thu Aug 3 05:56:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wang, Xiao W" X-Patchwork-Id: 711053 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 B0BB4EB64DD for ; Thu, 3 Aug 2023 05:48:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231322AbjHCFsc (ORCPT ); Thu, 3 Aug 2023 01:48:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230058AbjHCFsb (ORCPT ); Thu, 3 Aug 2023 01:48:31 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D6A82D43; Wed, 2 Aug 2023 22:48:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691041710; x=1722577710; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=fuHR5vlg0Pj/rQJGG+2yi4N34sEiicrfjR7PExpvW5w=; b=J9jsMy5OLyztTj41clc5neL0vtASw1NM5UePWSe6785DAMQJWyHuLbEb wTKp0YTVH0/nXdAMpdsPo+jum6nWvn1YgcwQz8FdCph8F1OfLwKHVofZn mquKS6QQPuKJZtXkg6EWBd3peXBnW6WTb75/PUquHFVyfH3gd0oHXIm6b sypy9EYzdj5eZD+lhjSXA4hdiJ3eK6oFPDD4NzYfHYsDJdlEQ3HesFvbz TVJZOpAw+eiGjz8gaJKZYACyHEO0PEMzHqrzGbngesu1UJzEcEXnJ+kYw xerAo6G9zeQ5SjbYFUFdYndtLuZI3glNn6wRLKxzxrQVUZ/jfwhKBfQB+ g==; X-IronPort-AV: E=McAfee;i="6600,9927,10790"; a="372510831" X-IronPort-AV: E=Sophos;i="6.01,251,1684825200"; d="scan'208";a="372510831" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2023 22:48:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10790"; a="732629455" X-IronPort-AV: E=Sophos;i="6.01,251,1684825200"; d="scan'208";a="732629455" Received: from xiao-desktop.sh.intel.com ([10.239.46.158]) by fmsmga007.fm.intel.com with ESMTP; 02 Aug 2023 22:48:25 -0700 From: Xiao Wang To: ardb@kernel.org Cc: linux-riscv@lists.infradead.org, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, Xiao Wang , stable@vger.kernel.org Subject: [PATCH] efi/riscv: libstub: Fix comment about absolute relocation Date: Thu, 3 Aug 2023 13:56:11 +0800 Message-Id: <20230803055611.2343011-1-xiao.w.wang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-efi@vger.kernel.org We don't want absolute symbols references in the stub, so fix the double negation in the comment. Fixes: d7071743db31 ("RISC-V: Add EFI stub support.") Cc: stable@vger.kernel.org Signed-off-by: Xiao Wang --- drivers/firmware/efi/libstub/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/efi/libstub/Makefile b/drivers/firmware/efi/libstub/Makefile index b0f8c495c10f..ed6e8ebd89b4 100644 --- a/drivers/firmware/efi/libstub/Makefile +++ b/drivers/firmware/efi/libstub/Makefile @@ -146,7 +146,7 @@ STUBCOPY_RELOC-$(CONFIG_ARM64) := R_AARCH64_ABS # For RISC-V, we don't need anything special other than arm64. Keep all the # symbols in .init section and make sure that no absolute symbols references -# doesn't exist. +# exist. STUBCOPY_FLAGS-$(CONFIG_RISCV) += --prefix-alloc-sections=.init \ --prefix-symbols=__efistub_ STUBCOPY_RELOC-$(CONFIG_RISCV) := R_RISCV_HI20