From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755370AbbCRJGW (ORCPT ); Wed, 18 Mar 2015 05:06:22 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:20846 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753594AbbCRJGT (ORCPT ); Wed, 18 Mar 2015 05:06:19 -0400 Date: Wed, 18 Mar 2015 10:08:01 +0100 From: Quentin Casasnovas To: Quentin Casasnovas , Rusty Russell , Michal Marek Cc: lkml , Oleg Nesterov , Borislav Petkov , Linus Torvalds Subject: Re: [PATCH 2/7] modpost: add .sched.text and .kprobes.text to the TEXT_SECTIONS list. Message-ID: <20150318090801.GG19131@chrystal.uk.oracle.com> References: <1426596002-26128-1-git-send-email-quentin.casasnovas@oracle.com> <1426596002-26128-3-git-send-email-quentin.casasnovas@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1426596002-26128-3-git-send-email-quentin.casasnovas@oracle.com> User-Agent: Mutt/1.5.22 (2013-10-16) X-Source-IP: aserv0021.oracle.com [141.146.126.233] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adding Rusty and Michal to CC. On Tue, Mar 17, 2015 at 01:39:57PM +0100, Quentin Casasnovas wrote: > .sched.text and .kprobes.text should behave exactly like .text with regards > to how we should warn about referencing sections which might get discarded > at runtime. > > Signed-off-by: Quentin Casasnovas > --- > scripts/mod/modpost.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c > index 7094a57..8cef46b 100644 > --- a/scripts/mod/modpost.c > +++ b/scripts/mod/modpost.c > @@ -873,7 +873,8 @@ static void check_section(const char *modname, struct elf_info *elf, > #define ALL_EXIT_SECTIONS EXIT_SECTIONS, ALL_XXXEXIT_SECTIONS > > #define DATA_SECTIONS ".data", ".data.rel" > -#define TEXT_SECTIONS ".text", ".text.unlikely" > +#define TEXT_SECTIONS ".text", ".text.unlikely", ".sched.text", \ > + ".kprobes.text" > > #define INIT_SECTIONS ".init.*" > #define MEM_INIT_SECTIONS ".meminit.*" > -- > 2.0.5 >