Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp914431lqb; Wed, 17 Apr 2024 14:54:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUzNmmhe/NslYBmQr0bdYOs+kx/gjG4qMHZwWuqdQq2LWiuzoppWZQovg1LLmRBoVBOfeOThQMB4MKJw+7rpp8RRT+Ox407ufB8SSNW2A== X-Google-Smtp-Source: AGHT+IEfiRbfhM81OjBXfrs9AYa8CQLkGdGWxKAC9c2PtuaLisF4PPeWVzhXr3gYs7FLWbQ0pyoq X-Received: by 2002:a05:6a21:3e05:b0:1a7:2d39:51cf with SMTP id bk5-20020a056a213e0500b001a72d3951cfmr1092289pzc.26.1713390861677; Wed, 17 Apr 2024 14:54:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713390861; cv=pass; d=google.com; s=arc-20160816; b=Wj7oPW0AQP/kR1Jym+DPL02CeHtV86u4TlN2i86Xd1LThaQlnCPuQa2IO0xRhXglE5 ll+NhklJXmo+CDee7YaI1zaEzjwywwdN1Av+NMjiAy05D3hS1BLWESDZihYMF27ajrvo Lb2Se3BfmiIK38+6PiFMpjhcbLcfcX7T8jrJmy01DGfnK8yrR8smZdgHrJcfzgKxNINf WyisEKJk4gUCvz5/KnQMdmHOda1ETjU/XzIf2CdrWt5r3kZ0HK3gVY9YivuvrQGSz83v NfWoQhUEH89flOM7Wg8xq2reyc/x0TYphydtpb0jAV/Lasl39RYXFrl0sXUMPmtk0UDK jE9Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=BBXDMb8X7+gmK7k2SRatc/nO6cwOVMhPFPltafFnGeo=; fh=krMIBf9g6vRb0l+PyCQs/GeqyHQ0GL/6Hm4su+kIqi8=; b=DgNjLGy+CwouikhPJ+HtAdOL594mNkqlHhXsx/+CgcTiTWpNPFitfHwsl4v4rISu/m RJBKDSsDQ16PjhmXHM3ny+c+XfW4CB9mnfISEzR7L+eKSKz2NEPlBvEaD3gouQIBJX9I hlNj4L94HIgksnqFvuIVIbyonCxhkYmE4SdaKHDTa7UwHgNGLVs4TYP1Y/CwbUxZTdWT M1dTUlQVZlUML7nJo0v+Fk1dDjThisTz5O4gFocgjXaab9cA65RnEaK9zwzuuteehw/R UrBshIsFfi2+Ds0o7omhgcIzVpXmYxRORgUDkbsCMskcE/eIWAPViW1ht8Imss6Et780 hROA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Uma00F9J; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-149269-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149269-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id a15-20020a17090a8c0f00b002a2342884e4si167850pjo.45.2024.04.17.14.54.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 14:54:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-149269-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Uma00F9J; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-149269-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149269-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4ED94284669 for ; Wed, 17 Apr 2024 21:54:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 908E11494BD; Wed, 17 Apr 2024 21:54:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Uma00F9J" 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 B099A13C3F9; Wed, 17 Apr 2024 21:54:02 +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=1713390842; cv=none; b=PsmZCtv5iOONTEZcInN1q0GOUQ2BgrqwOlma/6yqFqFbRwoAxtB9FflBrkabaSQAnfrbhyrBlkqltaQPG/RB/0/K32JuBWg7MlcwLH4kXkDZBXBRNZ8jSQ2InamlmeV6ol0VIq2QaxfHavA6mVcxxHXC47LFGUr4KD3iLQCmSxE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713390842; c=relaxed/simple; bh=y/oIuT0t5fQdzfr7m5A1SD/C2aOn4sapsexfuFNbY9A=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qDd66lJiwvBbs2qyQ2tBfXSPP+/fNddUzT+WrmDbKU1W6FsGHIxzt7pG7ym30e7lHddF6j307jfZOFTkTT0vkY2TnNFvhKiNwmTebh4ztNbywNaQkB6UDIn6Lh8NLjlr5uroilQtMDDBKJcjA6ZqJ2Cyi/rNybZJIIcbri/+rgI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Uma00F9J; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C5350C4AF08; Wed, 17 Apr 2024 21:54:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713390842; bh=y/oIuT0t5fQdzfr7m5A1SD/C2aOn4sapsexfuFNbY9A=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Uma00F9JLR/MDDk8Ai4ss95HRMdT+/3/4abNgJvFKaR+uQOI07KPlMMMwnPDJHtrL twPGdo+SrIY+zn0ogxQob6IJxEQp6VUHInw+8Nj93souXMgPXJWyR5zrkQIFYOPFlc o9Xq5uHoy3u7EBoLly1bWdX6+gdOs5orvNsgW6lFyc/MX7nMOgZuLKzZ4G2YBHqdCn Ilxj2xiUfPiP03tLDXUHCc76yM4x9nzQWM96/mznvTUcMtPAV3Ww7JqIsF6hZKFnXL 8cKlRqwuuf6u6wRZaaJIrh6vlr5kNW/Iu7j9i0Y40IWw6bWFsYRTL7hprddMUFgaB/ HtzgAjksBrGSA== From: Nathan Chancellor Date: Wed, 17 Apr 2024 14:53:46 -0700 Subject: [PATCH 2/2] x86/purgatory: Enable orphan section warnings 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="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240417-x86-fix-kexec-with-llvm-18-v1-2-5383121e8fb7@kernel.org> References: <20240417-x86-fix-kexec-with-llvm-18-v1-0-5383121e8fb7@kernel.org> In-Reply-To: <20240417-x86-fix-kexec-with-llvm-18-v1-0-5383121e8fb7@kernel.org> To: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com Cc: x86@kernel.org, hpa@zytor.com, ndesaulniers@google.com, morbo@google.com, justinstitt@google.com, song@kernel.org, ribalda@chromium.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, patches@lists.linux.dev, Nathan Chancellor X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1061; i=nathan@kernel.org; h=from:subject:message-id; bh=y/oIuT0t5fQdzfr7m5A1SD/C2aOn4sapsexfuFNbY9A=; b=owGbwMvMwCUmm602sfCA1DTG02pJDGkKLt8PhWsHZx2oyzv68Upp7qGDh1ebxX3UNlt6Ss81t fKyWh93RykLgxgXg6yYIkv1Y9XjhoZzzjLeODUJZg4rE8gQBi5OAZgIpxPDP7vJTiUzA7wNrmd/ cGS8+5dXT+uqyd9JTzwfT9//UJmB+z8jw1mOjeoPI0Mr/CfITf4gf5en9bnT2/hr/FFWV97LuRW o8QEA X-Developer-Key: i=nathan@kernel.org; a=openpgp; fpr=2437CB76E544CB6AB3D9DFD399739260CB6CB716 Now that the purgatory has a linker script that explicitly describes all of its sections, turn on orphan section warnings for it so that new sections do not appear without notice. Signed-off-by: Nathan Chancellor --- arch/x86/purgatory/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/purgatory/Makefile b/arch/x86/purgatory/Makefile index dfc030a4cca9..a6c8239abcba 100644 --- a/arch/x86/purgatory/Makefile +++ b/arch/x86/purgatory/Makefile @@ -17,7 +17,7 @@ CFLAGS_sha256.o := -D__DISABLE_EXPORTS -D__NO_FORTIFY # When linking purgatory.ro with -r unresolved symbols are not checked, # also link a purgatory.chk binary without -r to check for unresolved symbols. PURGATORY_LDFLAGS := -z nodefaultlib -LDFLAGS_purgatory.ro := -r $(PURGATORY_LDFLAGS) -T +LDFLAGS_purgatory.ro := --orphan-handling=$(CONFIG_LD_ORPHAN_WARN_LEVEL) -r $(PURGATORY_LDFLAGS) -T LDFLAGS_purgatory.chk := -e purgatory_start $(PURGATORY_LDFLAGS) targets += purgatory.ro purgatory.chk -- 2.44.0