From patchwork Sat Oct 8 14:11:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 9368249 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9743060487 for ; Sat, 8 Oct 2016 14:11:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 899E6293F4 for ; Sat, 8 Oct 2016 14:11:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7E2E029456; Sat, 8 Oct 2016 14:11:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ECF6C293F4 for ; Sat, 8 Oct 2016 14:11:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756910AbcJHOLb (ORCPT ); Sat, 8 Oct 2016 10:11:31 -0400 Received: from mout.gmx.net ([212.227.17.20]:55488 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756096AbcJHOLa (ORCPT ); Sat, 8 Oct 2016 10:11:30 -0400 Received: from p100.box ([92.203.45.129]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MEbYb-1bdh0O02wb-00Fn2J; Sat, 08 Oct 2016 16:11:17 +0200 Date: Sat, 8 Oct 2016 16:11:13 +0200 From: Helge Deller To: linux-parisc@vger.kernel.org, James Bottomley , John David Anglin Subject: [PATCH] parisc: Move exception table into read-only section Message-ID: <20161008141113.GA31533@p100.box> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Provags-ID: V03:K0:HEJdbq9DYI5RqP4HrR+E4rXce+6Wa4KTdwtkWl2cNJN+uyw9BAd 5G/pviEUdjMm9jf1lJkYBA+AwtlRib9UBQ9w6fQqg58Q1nv2i+O5ocdeBY4EuAPJ3Q3hyo+ SEhaClxSmXKMyZpm76wSFCXjxxKdxSBlCSk26rx2ZxDEVtSxlwy0HQCErTH5rjDZO3yQEqf 6Cp4Hx8COnoH8HKxXltUw== X-UI-Out-Filterresults: notjunk:1; V01:K0:bDmmun1MpwU=:JHcvT6M4gA5nyEOrgyC1bH jm/bBs9nkeftOwOfMoixq45sNGa6SgLdpWxM2HKhVyfZ9GiHZXPq5F8B5prdtkCNaB6JM3kW+ cpu7dKEn5rUmckKnShg/GCMYKVqY/yIIe7DnybhExs3+Mjr5idA8kGHwWWs4takMzEwAdiSL5 g0ICwqwRXdZr8+cj5icID65KMyl+G4806TqxiLeq3MClzcos3WcX4SxOwdVAOmY7kpRJYAjD1 jwp9iXWz6XC4UZ0V3tzhnKdR1gRLcztnJWvrX/gTLS2Q6SLu+KKgVzdS88ZDEp3O9xOZmIgPu JcTWoGRVpB0E1l3cHUFIxNxl9RjlZ+/daE3VXV5+Ov0ELZaPVNJJNZuPzA94vAPvbZqc83PIo 0GyT4UZqNj/eJAywq4Uiyq7HJIdbez2wyGm8AeI2JSjAo39sQkPjEICtQImOMJ3cX4u7eoj3E ZDMYUy/EE6f3ScgXYpJnnAwHDpanorkXaknBxTSFgJhtWTr++LT2U0cgXG1kVsA9w1wcGk5ho 8EBbHFm6a9DF8BMylyc9tXchGxNNIknRBbVREt8RIM9bZ9V1//yMeesX3wxWmOLPYmnukYKcm sHl8BOrQ4DMNpakz9/HlgNLjOzciyhIWAMtRSTQznugai6JeG2ckbW0Yz2Xc95ybPMTIzkM2W SKMzbzAXGMUQE65eMmF0or/yqzeV/61NY1jvQFdntNSatDYajDeWp44iQBx+tJFoC/UqNgZxF RHmxRoLYXnBCbTA+f0DLnNxertNDripvD9arVd8lGJyzK21iYl2B2yXRpWY= Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The exception tables are sorted during buildtime (due to BUILDTIME_EXTABLE_SORT), so it's safe to move those into the read-only kernel section. Signed-off-by: Helge Deller --- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/parisc/kernel/vmlinux.lds.S b/arch/parisc/kernel/vmlinux.lds.S index b37787d..f366a1a 100644 --- a/arch/parisc/kernel/vmlinux.lds.S +++ b/arch/parisc/kernel/vmlinux.lds.S @@ -106,6 +106,10 @@ SECTIONS } #endif + /* RO because we have BUILDTIME_EXTABLE_SORT */ + EXCEPTION_TABLE(8) + NOTES + /* unwind info */ .PARISC.unwind : { __start___unwind = .; @@ -121,9 +125,6 @@ SECTIONS . = ALIGN(HUGEPAGE_SIZE); data_start = .; - EXCEPTION_TABLE(8) - NOTES - /* Data */ RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, PAGE_SIZE)