From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out30-56.freemail.mail.aliyun.com ([115.124.30.56]:50807 "EHLO out30-56.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728513AbfKHHL0 (ORCPT ); Fri, 8 Nov 2019 02:11:26 -0500 From: shile.zhang@linux.alibaba.com Subject: [RFC PATCH v2 2/3] kbuild: Sort ORC unwind tables in vmlinux link phase Date: Fri, 8 Nov 2019 15:11:07 +0800 Message-Id: <20191108071108.72132-3-shile.zhang@linux.alibaba.com> In-Reply-To: <20191108071108.72132-1-shile.zhang@linux.alibaba.com> References: <20191108071108.72132-1-shile.zhang@linux.alibaba.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Masahiro Yamada , Michal Marek , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Josh Poimboeuf , x86@kernel.org Cc: "H . Peter Anvin" , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, Shile Zhang From: Shile Zhang Sort the ORC unwind tables in vmlinux link phase, only for ORC unwinder. Signed-off-by: Shile Zhang --- scripts/link-vmlinux.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh index 06495379fcd8..dea7797fcbdc 100755 --- a/scripts/link-vmlinux.sh +++ b/scripts/link-vmlinux.sh @@ -183,6 +183,11 @@ sortextable() ${objtree}/scripts/sortextable ${1} } +sortorctable() +{ + ${objtree}/scripts/sortorctable ${1} +} + # Delete output files in case of error cleanup() { @@ -303,6 +308,15 @@ if [ -n "${CONFIG_BUILDTIME_EXTABLE_SORT}" ]; then sortextable vmlinux fi +if [ -n "${CONFIG_UNWINDER_ORC}" ]; then + info SORTORC vmlinux + if ! sortorctable vmlinux; then + echo >&2 Failed to sort ORC unwind tables + echo >&2 Check what is wrong and try again + exit 1 + fi +fi + info SYSMAP System.map mksysmap vmlinux System.map -- 2.24.0.rc2