modpost.c: Add .text.unlikely to TEXT_SECTIONS
authorTom Rini <trini@ti.com>
Mon, 20 May 2013 00:55:38 +0000 (10:25 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 20 May 2013 02:38:45 +0000 (12:08 +0930)
gcc's places cold functions into the .text.unlikely section and we
need to check this section as well for section mismatches otherwise we
may have false negatives for this test.

Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-kernel@vger.kernel.org
Cc: linux-kbuild@vger.kernel.org
Signed-off-by: Tom Rini <trini@ti.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (wording update)
scripts/mod/modpost.c

index a4be8e112bb63c2ece5baa423e9aef65c92a1ad1..3d155dd27eb6da8eab9a81767fe30796be1cf4d3 100644 (file)
@@ -884,7 +884,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.*"