Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp471260pxb; Thu, 26 Aug 2021 07:18:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1OqGLXhmj8f40k0YpxSNxVmYHYNhgoqXsnJnFV2bXHRDfXxlG/qivLSNFWy+4VQdbC0Z7 X-Received: by 2002:a5d:914b:: with SMTP id y11mr3196198ioq.6.1629987519430; Thu, 26 Aug 2021 07:18:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629987519; cv=none; d=google.com; s=arc-20160816; b=JDs5OlIcuzlHZmoZ1a2jswn8t2OKPQGDPip7Lq5qzus7g1edS5DNPFN+oL+eyrQ0LA up5EEtgOMDCzB4CyGiTUb7803RUXeYx8cQ1f0S79HSLVnO/EEHVp7SAbQls5qj/z9FSI sgakBta5fz4RP8Zx9NaufOufSrmQ6c+DlJTePIotP97ZQP9EnBuDLF4NkbHexSKnkcjx I/cq8NdrcEV8ZnqOttcYqlogbbVQ3ZCX4zCXLqhV/avK7yv9e7QSVeksAKvhG7K2KnOU MYs2flcI8wwDEgsMjlgKymEcWRhNYON6zLd0ruDn7pI9IYwJvywoGnE0+BWLOURK/mBc 7Hig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=1D5mqM7j5AlUyq4PwMTMn72pNxWZmjR/G8aqJKeKLmo=; b=Byuqclg/In4rxFVQqP02jy1VIUAKk1+5bL6XnvhdtdsheH53yYRezn9rewpVjXUouO Mt+NSd5VFrXxJxhY29OI2AVQtvlAxItNYUyGlKzDBxCjI9H9BEumFqCriyOLsBnpEJGz MjB7TE4LNW5u1OoIR4Pef5oiAxT5yPYfgsVr9kQtAscW6YwQg+ihHdI4NjAiNH2gNdBk RUHTbFtaM9fUAs18ImABU4w/GuZQQw5NlltD87v4rXfx43HLiVhwyYNu2etdJBy6mFR3 1a7bB7HaZ8f8Mk2MGE98gYnRjxjvy10r7u29I8wpfkK1U98t83xHC3zL8o/EEjwn2lGe QxxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mail.ustc.edu.cn header.s=dkim header.b=e+EhbQtU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mail.ustc.edu.cn Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m12si3395515ioj.96.2021.08.26.07.18.24; Thu, 26 Aug 2021 07:18:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mail.ustc.edu.cn header.s=dkim header.b=e+EhbQtU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mail.ustc.edu.cn Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242864AbhHZORb (ORCPT + 99 others); Thu, 26 Aug 2021 10:17:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242867AbhHZORa (ORCPT ); Thu, 26 Aug 2021 10:17:30 -0400 Received: from ustc.edu.cn (email6.ustc.edu.cn [IPv6:2001:da8:d800::8]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 58009C061757 for ; Thu, 26 Aug 2021 07:16:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mail.ustc.edu.cn; s=dkim; h=Received:Date:From:To:Cc:Subject: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=1D5mqM7j5AlUyq4PwMTMn72pNxWZmjR/G8aqJKeKLmo=; b=e+EhbQtUU8vG/ ItzK+tMjN9L1qz4EdRqkvE5wGoKA9fOFsY5l0TBSu6+rFItcARb+uuYYSLqJMWlH kaIaNs77nAEZ2o1dbF4NQokCDfCdm3KOkqP3q339unFwiTg5v3tPPvXHfdMYlv0K iPoTxdfnoonV6mF/QTF4FrwscYIJF0= Received: from xhacker (unknown [101.86.20.15]) by newmailweb.ustc.edu.cn (Coremail) with SMTP id LkAmygBH+PwnoidhaKPGAA--.59140S2; Thu, 26 Aug 2021 22:16:07 +0800 (CST) Date: Thu, 26 Aug 2021 22:09:52 +0800 From: Jisheng Zhang To: Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] riscv: improve __ex_table section handling Message-ID: <20210826220952.77a68a9e@xhacker> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-CM-TRANSID: LkAmygBH+PwnoidhaKPGAA--.59140S2 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUU5G7k0a2IF6w1UM7kC6x804xWl14x267AK xVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUJVWUGw A2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26ryj 6F1UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7xvwVC2z280aVAFwI0_Gc CE3s1l84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxI r21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r106r15McIj6I8E87 Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IY64vIr41l42xK82IYc2Ij 64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x 8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE 2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42 xK8VAvwI8IcIk0rVW3JVWrJr1lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY 1x0267AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjxU2YiiDUUUU X-CM-SenderInfo: xmv2xttqjtqzxdloh3xvwfhvlgxou0/ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jisheng Zhang Enable BUILDTIME_TABLE_SORT to sort the exception table at build time then move exception table to RO_DATA segment. Since v1: - Only enable BUILDTIME_TABLE_SORT for MMU. Thank Palmer for catching tinyconfig case. Jisheng Zhang (2): riscv: Enable BUILDTIME_TABLE_SORT riscv: Move EXCEPTION_TABLE to RO_DATA segment arch/riscv/Kconfig | 1 + arch/riscv/kernel/vmlinux-xip.lds.S | 1 - arch/riscv/kernel/vmlinux.lds.S | 4 ++-- scripts/sorttable.c | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) -- 2.32.0