From mboxrd@z Thu Jan 1 00:00:00 1970 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 2D6693161B1 for ; Wed, 26 Nov 2025 06:07:35 +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=1764137256; cv=none; b=GsAyDgGcJcNRREVkiSu5W7aR3N827VmS7HsrHIE5zuGbe598SPfAtQjdxeq9R5TfixyrNA3HwvkkwfTT/9ftvzosHGSkE28PZEJbPEMDxo0TBCV9sfkOExbVVbKJV6BJA2TTGqTyzBNAvjrpj5mPCURdQAdQ3Z45OCkllkJZl74= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764137256; c=relaxed/simple; bh=AWy7+aFV/5Ou/JM6+76ggCMJs6GeAYHOLQfpIt1l/54=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Pez3e1XbPV4vG/Pw/9v4zYB9dYi5SGbEKpM/2B5KozxpklLZbUmAS2zdPaADYuDN6E5yjuKu1HMKjdx4letbnOtSqMn57DQQ9C3uHRSoQgkjs8sskU2ip5h7rkxP0YTSuBj+xeNBXAAmCD4Zka+G9zW8XqAzA/qUrBxK5iBaKsY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nPVKH2Ql; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nPVKH2Ql" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94E3BC116B1; Wed, 26 Nov 2025 06:07:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1764137255; bh=AWy7+aFV/5Ou/JM6+76ggCMJs6GeAYHOLQfpIt1l/54=; h=From:To:Cc:Subject:Date:From; b=nPVKH2QlIamsyWD8C2bwbFw4WhQyRxly2hsxTxij6szS9nFv4j3rghUZkss7HOZtl UbqPw4KtNh1KYB6uEkbFQl2meaEOmwxViYx2YutUH3K27edYLY845aegGD/1M/rrrT b0KKSi6jE6ugsykc3K+tBQ75Z8J++Qf33rfr/f6xtDslcdp9Lmnn5FTgInEZJbMYe1 Q6mM3LGd6uHkoO3D2Z/4D0MRbuYRbBVaJGm8osXwXveaaxdEzjSzydrtMiMNtXTiv6 Xn2QgfEzbFGnSSvDTmZPu824FExUcxTnqW5P62lda+NA88zmwbp5vv2xs5uUmEOv1I xZw4NXl3ujkyQ== From: Josh Poimboeuf To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, Peter Zijlstra Subject: [PATCH 0/4] objtool: Improve code generation for annotation macros Date: Tue, 25 Nov 2025 22:06:56 -0800 Message-ID: X-Mailer: git-send-email 2.51.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit For tip/objtool/core. As much as possible, undo the code generation damage introduced by ANNOTATE_DATA_SPECIAL: - Remove its usage in favor of SHF_MERGE + sh_entsize, where possible - Print the annotation on a single line: 912: .pushsection ".discard.annotate_data", "M", @progbits, 8; .long 912b - .; .long 1; .popsection - Remove the trailing newline/tab; let the invoking code decide on the appropriate separator for the given context Josh Poimboeuf (4): x86/alternative: Remove ANNOTATE_DATA_SPECIAL usage x86/asm: Remove ANNOTATE_DATA_SPECIAL usage objtool: Consolidate annotation macros objtool: Remove newlines and tabs from annotation macros arch/um/include/asm/Kbuild | 1 - arch/um/include/shared/common-offsets.h | 3 ++ arch/x86/include/asm/alternative.h | 9 +++--- arch/x86/include/asm/asm.h | 25 ++++++++------- arch/x86/include/asm/bug.h | 2 +- arch/x86/include/asm/cpufeature.h | 2 +- arch/x86/include/asm/irq_stack.h | 2 +- arch/x86/include/asm/jump_label.h | 2 +- arch/x86/include/asm/nospec-branch.h | 4 +-- arch/x86/include/asm/paravirt_types.h | 2 +- arch/x86/include/asm/smap.h | 8 ++--- arch/x86/include/asm/static_call.h | 2 +- arch/x86/kernel/alternative.c | 4 +-- arch/x86/kernel/asm-offsets.c | 3 ++ arch/x86/kernel/rethook.c | 2 +- arch/x86/kernel/static_call.c | 4 +-- arch/x86/lib/error-inject.c | 2 +- arch/x86/um/shared/sysdep/kernel-offsets.h | 2 ++ include/linux/annotate.h | 36 +++++++++------------- include/linux/objtool.h | 2 +- kernel/bounds.c | 1 + scripts/mod/devicetable-offsets.c | 1 + 22 files changed, 62 insertions(+), 57 deletions(-) -- 2.51.1