diff options
author | Tom Rini <trini@ti.com> | 2013-05-19 20:55:38 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2013-05-19 22:38:45 -0400 |
commit | 06df44ee41442d83be061c5fd1b1de4f5fc6fbbf (patch) | |
tree | ddc9f48bdf9090d442aee78a2fe991b02369b42c /scripts/mod | |
parent | d5fe85af85367d5892e4308f596de4e2a5fb9017 (diff) |
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: Tom Rini <trini@ti.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (wording update)
Diffstat (limited to 'scripts/mod')
-rw-r--r-- | scripts/mod/modpost.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index a4be8e112bb6..3d155dd27eb6 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c | |||
@@ -884,7 +884,7 @@ static void check_section(const char *modname, struct elf_info *elf, | |||
884 | #define ALL_EXIT_SECTIONS EXIT_SECTIONS, ALL_XXXEXIT_SECTIONS | 884 | #define ALL_EXIT_SECTIONS EXIT_SECTIONS, ALL_XXXEXIT_SECTIONS |
885 | 885 | ||
886 | #define DATA_SECTIONS ".data$", ".data.rel$" | 886 | #define DATA_SECTIONS ".data$", ".data.rel$" |
887 | #define TEXT_SECTIONS ".text$" | 887 | #define TEXT_SECTIONS ".text$", ".text.unlikely$" |
888 | 888 | ||
889 | #define INIT_SECTIONS ".init.*" | 889 | #define INIT_SECTIONS ".init.*" |
890 | #define CPU_INIT_SECTIONS ".cpuinit.*" | 890 | #define CPU_INIT_SECTIONS ".cpuinit.*" |