Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2091685ybx; Thu, 7 Nov 2019 23:13:24 -0800 (PST) X-Google-Smtp-Source: APXvYqymsEIGBBZty/m33iCDfuOzn9wUW1xQHBPo2tD6UbOq3VuqlHtIkq4dFVua8HRgZXFAjbYa X-Received: by 2002:a17:906:5859:: with SMTP id h25mr7397665ejs.2.1573197204447; Thu, 07 Nov 2019 23:13:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573197204; cv=none; d=google.com; s=arc-20160816; b=WEUc2gPFaFJm9nqz3IQ+6fTmBKlY+nXPXdk4tiIAoPTfTuhGRo/hE/mKaGk5/BTq7V Bbl3077msl5smidQVoHiQBwtpDdm04uCfosM2GcqrMo3hb9q7pHEQ9Jtzu5I0BjcbP3r FQKmKzUxdDgg4CF4qsZ3tqNNZO9TWllG4/vnSj15wbDS7kF8oOW80qF7rPnyS1Wpphga FFOPMiBlJybs2Eplm7bIQnscmiLOTpKunJBJ0nh/JNnnjXlmvhAzcqPGh/bIAGk6h4zj sPnyCKEbKMgTjwheY4g3HA84TZPHnGRL9Lxzmb0EwFzdjFNNsAZTsIsZbuNo2TOw/KEE 4NBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=/uhiLaM5IhPps+cuja3rFLnJ+2XqBGpGb6k123sxjDg=; b=jXNuxhSWHrtyMGBULuHgle9LpipQDApFtpFpfIGZJ1HPY6fLqAQ8BXA4EIG+7us8Qc YVy9VB16J/Sq62pfqK5Q9dIN9dBDmUFiMuWNS7sDA8N+uq+cxePFbI3iawM7/EFL9Lyi RY+8HaUYyUxvUAvAWGOTbwfiEkljuvPTj2fA6ZZ7fL2zDna4jxxOnxrAoWVXK0PtK+mh TJ/D+r80a5S7batK+sUjOKCPmgEtbntOrMqmFDXLZFtfLRRP4XzUaJjCu1AXg8mZT+V+ rniRkekOIKXnOLLUagyzKKkM5fBRPWsVpYnfkukmHxQgOG3ti1MucOlWQQ6FgyvwHK4o rXYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g15si3714970edl.95.2019.11.07.23.13.00; Thu, 07 Nov 2019 23:13:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730486AbfKHHL3 (ORCPT + 99 others); Fri, 8 Nov 2019 02:11:29 -0500 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 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01422;MF=shile.zhang@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0ThU5MwV_1573197070; Received: from e18g09479.et15sqa.tbsite.net(mailfrom:shile.zhang@linux.alibaba.com fp:SMTPD_---0ThU5MwV_1573197070) by smtp.aliyun-inc.com(127.0.0.1); Fri, 08 Nov 2019 15:11:21 +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 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> X-Mailer: git-send-email 2.24.0.rc2 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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