Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp146970lqq; Wed, 12 Jun 2024 20:57:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX7EtmWFzEPZMQVcDMLluIQzFFQQztJzEJlA3HEIAO/jXdMMy9HwSBKyv4mNpYEpca3L4hZd/SN+avdpF6nmG2pI7QWIxtR8APS3Q8FMA== X-Google-Smtp-Source: AGHT+IG35DeG5pzH/dFfuZD14DVbGMZKMmycuGmSc6HHiskHpPIg7zFQvKs28oaFrMlmA6lACHd8 X-Received: by 2002:a17:907:968b:b0:a6f:2a43:e956 with SMTP id a640c23a62f3a-a6f47f80616mr320152666b.74.1718251053418; Wed, 12 Jun 2024 20:57:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718251053; cv=pass; d=google.com; s=arc-20160816; b=hB2LjDQ4+c9k8L008p3NQe0RyvYGF1y7ItvI+1uLTl3rScnfmQQ37hNgEg6UDn++Er SZF9Hv1dn687dBqr8lkzxMOGdMVgb2qSV9XkcM82AIhePH4acR4mVhQdNJ6jNWCJPgDK 2RMZWAXYrIFz/AKKPi5Ww/aoGUUpDGlKoyhYHu0iXB4T1D4BWMbt5/VVechL1ssl1Ff3 cEtfNXbsC+iYvUIyJu5uj7j+D5WjqovmjaKzz/30mQhrNb5OM2D476Tfs8pH2kwewJeE Lx0pAR4u7/5S2DiWmWwL67wD5tazmDt2WHegcuWT2zCB637qi1kR5rOR3vIpLKpQzyse LlSg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=vm4GMiqmWdF5BUuXmosjQIp8baqxfdAQbkE641yS/yw=; fh=4vnKvga9Dlhg7CkyajPDw+d7QAmONzIssYCmy95bB64=; b=bXDGqmXf0kJDASze9wU5ANUF4AYQ1DTSh169EZKpHOPzteZHNyG1Oqu7A+jNSrSPpp GBHT+BowRCatOlfzAO212RiarxYUAcg4Jok0mqNYyB7geE4JBeyCAf72toHyPD7VTFKa o+O1GYtb96dfV05OjevpQvX+e1ukjqHcVP3oulY0juZhsd9h32BxVY17Uflmtn8AqC34 iMH9r6QpVCL7tM88TkzaS+bmig2SxVohqElRhPmqz7uydTMY61UuFR/5wG2HPnKeiuQ5 F5fOBsFb0WNMJA14Y9T28QqFaEI20Cze5oVcfuMiKs9l2wEGQYFl4a/z8NXOOyxMwhm5 tSQQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@fjasle.eu header.s=ds202307 header.b=YLtY4jl3; arc=pass (i=1 spf=pass spfdomain=fjasle.eu dkim=pass dkdomain=fjasle.eu dmarc=pass fromdomain=fjasle.eu); spf=pass (google.com: domain of linux-kernel+bounces-212544-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212544-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fjasle.eu Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56df7596si23801466b.580.2024.06.12.20.57.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 20:57:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212544-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=fail header.i=@fjasle.eu header.s=ds202307 header.b=YLtY4jl3; arc=pass (i=1 spf=pass spfdomain=fjasle.eu dkim=pass dkdomain=fjasle.eu dmarc=pass fromdomain=fjasle.eu); spf=pass (google.com: domain of linux-kernel+bounces-212544-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212544-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fjasle.eu Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 20EDA1F22DD5 for ; Thu, 13 Jun 2024 03:57:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE688132104; Thu, 13 Jun 2024 03:57:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=fjasle.eu header.i=@fjasle.eu header.b="YLtY4jl3" Received: from smtp.domeneshop.no (smtp.domeneshop.no [194.63.252.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9C4EA12EBE9; Thu, 13 Jun 2024 03:57:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.63.252.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718251044; cv=none; b=rHleMCtI079IM4ksaxEkjbamluEF3xxWTbRxY9z4ZKxIFLRdEQzXXWlDCLNz3FVz6PzmSDCHeDZL1VCztyEgUBLx78Z9GMYoxYZITcT+m0DN842wGAdGEsvkwKTmpkGIJhrtpuT4Jlfsy/lcTB0ySCuqsx/GKGTz4ZiV/vURrLk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718251044; c=relaxed/simple; bh=Z+LgvOUc59Gim16Zn7vezBws0OOuIFE03isIuxruS+Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZV7QyJ8922HMGE9wje/IK3A2ntmARXCtadK57ICPoR6taZuk/JR++OLEDS4A6IHTQ8kliHYA0CtxuTMSCEy4/qSeZi0bW+cj70ZwZ8z4vWzCuge3tGEe4sikW+MEFCjR0T+FVv6s+OU8mIHzoU4EOrFvME1mTIt0TM02edNQPHI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fjasle.eu; spf=pass smtp.mailfrom=fjasle.eu; dkim=pass (2048-bit key) header.d=fjasle.eu header.i=@fjasle.eu header.b=YLtY4jl3; arc=none smtp.client-ip=194.63.252.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fjasle.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fjasle.eu DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=fjasle.eu; s=ds202307; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=vm4GMiqmWdF5BUuXmosjQIp8baqxfdAQbkE641yS/yw=; b=YLtY4jl30fUeBh5dEKcOsWnAdt j8YOXyu1lWA2CYTLfaEXvkegedznRggQ/3cOTBjDF6JNaTgLXqJ10WRyDszcFknQXQboknM9NO+6N PLtV6qQUDaK02eH0w4OHiegGtlLmsaqTIL95J9AGrUCZBn5vmgJVkWA6jdJN//AX4m1Fu61ESycpJ jlkQIGJeILy88A18wgCcW7LkDH6CkOEsDVsh9pJG/QjJz5W5a1oE+/PWJbG7ZfzJIAEMw6m59M6UY wmb/DWKEUX1mnNh6FYgJZO8WgoHurlAje3iuXbe1Ve9meHpDL7dnR2v1mVDtq+R2tRw9UTHs+7ozH 8LTH2pnQ==; Received: from [2001:9e8:9f0:d301:3235:adff:fed0:37e6] (port=52066 helo=lindesnes.fjasle.eu) by smtp.domeneshop.no with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1sHbaB-006lkT-VZ; Thu, 13 Jun 2024 05:57:04 +0200 Date: Thu, 13 Jun 2024 05:57:00 +0200 From: Nicolas Schier To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Ard Biesheuvel , Arnd Bergmann , Nathan Chancellor , linux-arch@vger.kernel.org Subject: Re: [PATCH v3 2/3] kbuild: remove PROVIDE() for kallsyms symbols Message-ID: <20240613-monumental-basilisk-of-temperance-7dda6e@lindesnes> References: <20240610112657.602958-1-masahiroy@kernel.org> <20240610112657.602958-3-masahiroy@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240610112657.602958-3-masahiroy@kernel.org> On Mon, Jun 10, 2024 at 08:25:17PM +0900, Masahiro Yamada wrote: > This reimplements commit 951bcae6c5a0 ("kallsyms: Avoid weak references > for kallsyms symbols") because I am not a big fan of PROVIDE(). > > As an alternative solution, this commit prepends one more kallsyms step. > > KSYMS .tmp_vmlinux.kallsyms0.S # added > AS .tmp_vmlinux.kallsyms0.o # added > LD .tmp_vmlinux.btf > BTF .btf.vmlinux.bin.o > LD .tmp_vmlinux.kallsyms1 > NM .tmp_vmlinux.kallsyms1.syms > KSYMS .tmp_vmlinux.kallsyms1.S > AS .tmp_vmlinux.kallsyms1.o > LD .tmp_vmlinux.kallsyms2 > NM .tmp_vmlinux.kallsyms2.syms > KSYMS .tmp_vmlinux.kallsyms2.S > AS .tmp_vmlinux.kallsyms2.o > LD vmlinux > > Step 0 takes /dev/null as input, and generates .tmp_vmlinux.kallsyms0.o, > which has a valid kallsyms format with the empty symbol list, and can be > linked to vmlinux. Since it is really small, the added compile-time cost > is negligible. > > Signed-off-by: Masahiro Yamada > Acked-by: Ard Biesheuvel > --- Reviewed-by: Nicolas Schier