aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mod/modpost.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2015-04-14 23:58:08 -0400
committerRusty Russell <rusty@rustcorp.com.au>2015-04-22 04:01:31 -0400
commit6c730bfc894f5d4989c2c1493512d3330402be94 (patch)
treef9127992688ef46dfd8f5f979e137ab8d92d4584 /scripts/mod/modpost.c
parentd7e0abcf4c6d9fc4ebb948c9bbc880b2483434b4 (diff)
modpost: handle -ffunction-sections
52dc0595d540 introduced OTHER_TEXT_SECTIONS for identifying what sections could validly have __ex_table entries. Unfortunately, it wasn't tested with -ffunction-sections, which some architectures use. Reported-by: kbuild test robot <fengguang.wu@intel.com> Cc: Quentin Casasnovas <quentin.casasnovas@oracle.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'scripts/mod/modpost.c')
-rw-r--r--scripts/mod/modpost.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 6a925f200b25..22dbc604cdb9 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -876,7 +876,7 @@ static void check_section(const char *modname, struct elf_info *elf,
876#define TEXT_SECTIONS ".text", ".text.unlikely", ".sched.text", \ 876#define TEXT_SECTIONS ".text", ".text.unlikely", ".sched.text", \
877 ".kprobes.text" 877 ".kprobes.text"
878#define OTHER_TEXT_SECTIONS ".ref.text", ".head.text", ".spinlock.text", \ 878#define OTHER_TEXT_SECTIONS ".ref.text", ".head.text", ".spinlock.text", \
879 ".fixup", ".entry.text", ".text.fixup", ".exception.text" 879 ".fixup", ".entry.text", ".exception.text", ".text.*"
880 880
881#define INIT_SECTIONS ".init.*" 881#define INIT_SECTIONS ".init.*"
882#define MEM_INIT_SECTIONS ".meminit.*" 882#define MEM_INIT_SECTIONS ".meminit.*"