From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754029AbbCQMip (ORCPT ); Tue, 17 Mar 2015 08:38:45 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:45846 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753887AbbCQMih (ORCPT ); Tue, 17 Mar 2015 08:38:37 -0400 From: Quentin Casasnovas To: lkml Cc: Oleg Nesterov , Borislav Petkov , Linus Torvalds , Quentin Casasnovas Subject: [PATCH 2/7] modpost: add .sched.text and .kprobes.text to the TEXT_SECTIONS list. Date: Tue, 17 Mar 2015 13:39:57 +0100 Message-Id: <1426596002-26128-3-git-send-email-quentin.casasnovas@oracle.com> X-Mailer: git-send-email 2.0.5 In-Reply-To: <1426596002-26128-1-git-send-email-quentin.casasnovas@oracle.com> References: <1426596002-26128-1-git-send-email-quentin.casasnovas@oracle.com> X-Source-IP: acsinet22.oracle.com [141.146.126.238] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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