From patchwork Thu Nov 7 14:32:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shile Zhang X-Patchwork-Id: 11233051 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 664A3139A for ; Thu, 7 Nov 2019 14:33:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5050D218AE for ; Thu, 7 Nov 2019 14:33:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389507AbfKGOdC (ORCPT ); Thu, 7 Nov 2019 09:33:02 -0500 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]:40285 "EHLO out30-131.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731082AbfKGOdC (ORCPT ); Thu, 7 Nov 2019 09:33:02 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R391e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=shile.zhang@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0ThQoCKT_1573137161; Received: from e18g09479.et15sqa.tbsite.net(mailfrom:shile.zhang@linux.alibaba.com fp:SMTPD_---0ThQoCKT_1573137161) by smtp.aliyun-inc.com(127.0.0.1); Thu, 07 Nov 2019 22:32:55 +0800 From: shile.zhang@linux.alibaba.com 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 Subject: [RFC PATCH 2/4] kbuild: Sort ORC unwind tables in vmlinux link process Date: Thu, 7 Nov 2019 22:32:03 +0800 Message-Id: <20191107143205.206606-3-shile.zhang@linux.alibaba.com> X-Mailer: git-send-email 2.24.0.rc2 In-Reply-To: <20191107143205.206606-1-shile.zhang@linux.alibaba.com> References: <20191107143205.206606-1-shile.zhang@linux.alibaba.com> MIME-Version: 1.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org From: Shile Zhang To sort the ORC unwind tables in vmlinux link process, controlled by configure BUILDTIME_ORCTABLE_SORT. Signed-off-by: Shile Zhang --- scripts/link-vmlinux.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh index 06495379fcd8..43fe8c151c8d 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,11 @@ if [ -n "${CONFIG_BUILDTIME_EXTABLE_SORT}" ]; then sortextable vmlinux fi +if [ -n "${CONFIG_BUILDTIME_ORCTABLE_SORT}" ]; then + info SORTORC vmlinux + sortorctable vmlinux +fi + info SYSMAP System.map mksysmap vmlinux System.map