aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@gmail.com>2015-04-14 23:53:48 -0400
committerRusty Russell <rusty@rustcorp.com.au>2015-04-22 04:01:20 -0400
commitd7e0abcf4c6d9fc4ebb948c9bbc880b2483434b4 (patch)
tree10660681bf7e03a135ece2b78458ca188d27526c /scripts
parentb9cc4489c68de59f7a38ef4e02a9829465a6a544 (diff)
modpost: Whitelist .text.fixup and .exception.text
32-bit and 64-bit ARM use these sections to store executable code, so they must be whitelisted in modpost's table of valid text sections. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'scripts')
-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 cbd53e08769d..6a925f200b25 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" 879 ".fixup", ".entry.text", ".text.fixup", ".exception.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.*"