Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 06df44ee authored by Tom Rini's avatar Tom Rini Committed by Rusty Russell
Browse files

modpost.c: Add .text.unlikely to TEXT_SECTIONS



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: default avatarTom Rini <trini@ti.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (wording update)
parent d5fe85af
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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 ALL_EXIT_SECTIONS EXIT_SECTIONS, ALL_XXXEXIT_SECTIONS


#define DATA_SECTIONS ".data$", ".data.rel$"
#define DATA_SECTIONS ".data$", ".data.rel$"
#define TEXT_SECTIONS ".text$"
#define TEXT_SECTIONS ".text$", ".text.unlikely$"


#define INIT_SECTIONS      ".init.*"
#define INIT_SECTIONS      ".init.*"
#define CPU_INIT_SECTIONS  ".cpuinit.*"
#define CPU_INIT_SECTIONS  ".cpuinit.*"