From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ye0-f169.google.com ([209.85.213.169]:59525 "EHLO mail-ye0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757880Ab3DXWZ5 (ORCPT ); Wed, 24 Apr 2013 18:25:57 -0400 From: Tom Rini Subject: [PATCH] modpost.c: Add .text.unlikely to TEXT_SECTIONS Date: Wed, 24 Apr 2013 18:26:03 -0400 Message-Id: <1366842363-7513-1-git-send-email-trini@ti.com> Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: linux-kernel@vger.kernel.org Cc: Rusty Russell , Greg Kroah-Hartman , linux-kbuild@vger.kernel.org Recent gcc's may place functions into the .text.unlikely section and we need to check this section as well for section mismatches now otherwise we may have false negatives for this test. Cc: Rusty Russell Cc: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org Cc: linux-kbuild@vger.kernel.org Signed-off-by: Tom Rini --- scripts/mod/modpost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index ff36c50..13ff12f 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -880,7 +880,7 @@ 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$" +#define TEXT_SECTIONS ".text$", ".text.unlikely$" #define INIT_SECTIONS ".init.*" #define CPU_INIT_SECTIONS ".cpuinit.*" -- 1.7.9.5