Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp756695rdh; Wed, 14 Feb 2024 10:19:56 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWFpDu2QpzB5DAdQu7MBRYsPjsp5pd/C6TnKFcpwCY7evsK0WQuTSo2PfxhpoZz3H6UwWjXGP2s+bAZaMn1WO1QGFEcqFkcTXwScYHLpA== X-Google-Smtp-Source: AGHT+IHipvcytZ7ayqsjQKHgIpMNjyAv6q5jcQeA8NyT3yc3klJ9bMNssrM436lbvm1wVJ3AeuUv X-Received: by 2002:a17:906:4815:b0:a36:8711:f7b6 with SMTP id w21-20020a170906481500b00a368711f7b6mr2311666ejq.34.1707934796521; Wed, 14 Feb 2024 10:19:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707934796; cv=pass; d=google.com; s=arc-20160816; b=r33uM++xLod6bDysjxcxDRG8gduWjgPjb8AS72BV+Ew3wQXA04qBEBme/lZ/5OEsT/ OhNJ5N83YW94epbpG457F8hljbZDGy4CvD5tNQbyirPTMgZJ6JGPM1Qc/Nvlrf8Rdy5x s6iTSOk0vFMd8YsoNhJqIS7XX5WqnCmt14y4pN9prf3bvHob5aVYSJOTt23/5GSbNKmc Bq9HmGifpZ8fulMVTtiefGQ6JuOXYaIZNO1i1CHYc3lQvKS2RmyOxv7VWUREaW5KLrq3 m2FeBAxayceZ6zXPhhHSWbVQ/L4tMUXHyBFFGcTehToN3FcuvrlwtUNAkkMhcKOKVEYf rakA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=jPtaCNPDPN0cldj7BMvUjHCO2jPqIQkS64GHUte/Bew=; fh=NOUTGczqrmimxGodU06RLCjPeKnNPmicL+qnfEL+3qQ=; b=CCmWyXGQ4tMzwgwl9/WncOi8tnL+UVJBZNR74IBc3H2VtORLql2sAY3xc0W+5WvgaO f91hhW+4SiKoJ9alqNf9Y8brLN3eWhhlXf5pQXVXdyRK2dN3R/eoPdx++p+JgrYdqBaK QTmeVpqc8AyR1ZHRtmIMQuEt6uduTa5C+J5vWKHP7V/+Lobsq1TXLSA/dIvWG+sTVdQo oduI3/ZhZSV4MRERT4W0zCfcQA4ILwoiK6oqMJoGH8ccC32d5Gcaw4BMpxyvdMnzn+xH i+t/RkI8jtcDNqC2QipIGwmhgTFTKE8Wxy+owDjl+pvtwD1OFgIFbdP8l8/RevobZLcb FXyg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WWzMdHtv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-65795-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65795-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCUrfC0Oz6OShB2n6Q61+O8tI3sES5/b34JbEVs8NgPzkbaYqFcJvLDM1QK+NOMlCOurTlxWzYo7SH2cqfYrIV4QQKPjVmEl45pQc4R7+Q== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id gt43-20020a1709072dab00b00a3d47b58fb7si872039ejc.887.2024.02.14.10.19.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 10:19:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65795-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=pass header.i=@kernel.org header.s=k20201202 header.b=WWzMdHtv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-65795-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65795-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 442391F21F17 for ; Wed, 14 Feb 2024 18:19:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BC1B212836C; Wed, 14 Feb 2024 18:19:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WWzMdHtv" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E5248604AB; Wed, 14 Feb 2024 18:19:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707934788; cv=none; b=G9CKREgIrLv8JmP9RHoi3mP+8elr8BWMNEarE4dyP4Oddhk+d8yQSaykHPWdBqbg0bMjgE0FdY62Z5q3ZQ31VTab796xK2nOTA+hPBkN55473mmFQ9XHC9W8KqE6GNMbWNLm4gz9nQBtBgQ8MA5toFPCXg1Z/j1zez+MCJ0yRVo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707934788; c=relaxed/simple; bh=ireiJEzPK4O+z7JRHkRgdN7IMbrEYY6WQWzsHi+UMqE=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=TUEC1KNBNOpDqjGoEUHl+jXLdB9/rWUsRPGamblTy/Dagqw9VTek3TurczLS/blFJeV2ORhHpMiKP3QnM7nWLpKBaGpW+UJtD1XQsfR//0mssONsFwS9Mtp4rUsNdi28bnsXb1rWBx9U/GMStBvaJAwjz0k5q/loIdW46jU/PaQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WWzMdHtv; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DBE92C433F1; Wed, 14 Feb 2024 18:19:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707934787; bh=ireiJEzPK4O+z7JRHkRgdN7IMbrEYY6WQWzsHi+UMqE=; h=From:To:Cc:Subject:Date:From; b=WWzMdHtvzjCGafRLG46fOvXOyI/md3LQwpvLSwT9ZTOMprFd7wbFK/1ws6j7vMk1j G/79vryqwTXIrfo8HTSQ0fYMUkeaMpQYMvQs9GhkHepL0+moIxZIMgiByClWOj6jl3 kgVyuBjwnNkK5GWGnkESsowW9fRALGyilz/6q5wtdwdmFXmTPc0EcGM5BA3EMKpKkp 46j9TFjUnsz7Fr+4WgDZfjYFvFaJ5fJy04g/MIH4JCtyIkk5tr1dsty4sW2BsOK0MK ZHIwnINIc1ZIogQqYi4nKHW3p3qMstSHooC6cPqwPL+vOB1TaHoMsfMVEgdhZw6CUM Yp5oYM96KVYCg== From: Arnd Bergmann To: Masahiro Yamada Cc: Arnd Bergmann , Nathan Chancellor , Nicolas Schier , =?UTF-8?q?Pierre-Cl=C3=A9ment=20Tosi?= , Ard Biesheuvel , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] kallsyms: ignore ARMv4 thunks along with others Date: Wed, 14 Feb 2024 19:19:25 +0100 Message-Id: <20240214181942.3562473-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann lld is now able to build ARMv4 and ARMv4T kernels, which means it can generate thunks for those that can interfere with kallsyms table generation since they do not get ignore like the corresponding ARMv5+ ones are: Inconsistent kallsyms data Try "make KALLSYMS_EXTRA_PASS=1" as a workaround Add the missing symbols to the list of ignored symbol prefixes. Fixes: 5eb6e280432d ("ARM: 9289/1: Allow pre-ARMv5 builds with ld.lld 16.0.0 and newer") Fixes: efe6e3068067 ("kallsyms: fix nonconverging kallsyms table with lld") Signed-off-by: Arnd Bergmann --- scripts/mksysmap | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/mksysmap b/scripts/mksysmap index 9ba1c9da0a40..c809bf592790 100755 --- a/scripts/mksysmap +++ b/scripts/mksysmap @@ -52,6 +52,8 @@ ${NM} -n ${1} | sed >${2} -e " / __AArch64ADRPThunk_/d # arm lld +/ __ARMv4PILongThunk_/d +/ __ARMv4PILongBXThunk_/d / __ARMV5PILongThunk_/d / __ARMV7PILongThunk_/d / __ThumbV7PILongThunk_/d -- 2.39.2