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 4D7862108 for ; Mon, 24 Apr 2023 13:35:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3DDCC433D2; Mon, 24 Apr 2023 13:35:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1682343312; bh=n/w5OF3SZziTUVBEcMJfgelS+24erpL3mGQ9JlQEHsI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hdA7aL2tq6p+zvZ1j2pvF0POYSs25fzNI8o4daq0PPrzdiOj9ez6Q+fgL8cD3Gitb tMhVPONYku7KcPHlXtmgXDttrvEcMDglS4dD/qg2CPenc4K8DQ8sg/Q84NXWltbzGs URL5fXeZagfjhEPcVfVHMv0SSWSpPjtKbPduGXhs= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, "kernelci.org bot" , Jiaxun Yang , Thomas Bogendoerfer Subject: [PATCH 5.10 46/68] MIPS: Define RUNTIME_DISCARD_EXIT in LD script Date: Mon, 24 Apr 2023 15:18:17 +0200 Message-Id: <20230424131129.445344106@linuxfoundation.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230424131127.653885914@linuxfoundation.org> References: <20230424131127.653885914@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Jiaxun Yang commit 6dcbd0a69c84a8ae7a442840a8cf6b1379dc8f16 upstream. MIPS's exit sections are discarded at runtime as well. Fixes link error: `.exit.text' referenced in section `__jump_table' of fs/fuse/inode.o: defined in discarded section `.exit.text' of fs/fuse/inode.o Fixes: 99cb0d917ffa ("arch: fix broken BuildID for arm64 and riscv") Reported-by: "kernelci.org bot" Signed-off-by: Jiaxun Yang Signed-off-by: Thomas Bogendoerfer Signed-off-by: Greg Kroah-Hartman --- arch/mips/kernel/vmlinux.lds.S | 2 ++ 1 file changed, 2 insertions(+) --- a/arch/mips/kernel/vmlinux.lds.S +++ b/arch/mips/kernel/vmlinux.lds.S @@ -15,6 +15,8 @@ #define EMITS_PT_NOTE #endif +#define RUNTIME_DISCARD_EXIT + #include #undef mips