diff options
author | Quentin Casasnovas <quentin.casasnovas@oracle.com> | 2015-04-13 07:12:52 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2015-04-13 07:32:58 -0400 |
commit | 157d1972d079207332d31a761cdfb81598455e0a (patch) | |
tree | 07eaed1e50fd9553c947deb12b154fbda622c9b6 /scripts/mod | |
parent | 050e57fd5936eb175cbb7a788252aa6867201120 (diff) |
modpost: add .sched.text and .kprobes.text to the TEXT_SECTIONS list.
sched.text and .kprobes.text should behave exactly like .text with regards
to how we should warn about referencing sections which might get discarded
at runtime.
Signed-off-by: Quentin Casasnovas <quentin.casasnovas@oracle.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'scripts/mod')
-rw-r--r-- | scripts/mod/modpost.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 7094a57273b9..8cef46b18dc6 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c | |||
@@ -873,7 +873,8 @@ static void check_section(const char *modname, struct elf_info *elf, | |||
873 | #define ALL_EXIT_SECTIONS EXIT_SECTIONS, ALL_XXXEXIT_SECTIONS | 873 | #define ALL_EXIT_SECTIONS EXIT_SECTIONS, ALL_XXXEXIT_SECTIONS |
874 | 874 | ||
875 | #define DATA_SECTIONS ".data", ".data.rel" | 875 | #define DATA_SECTIONS ".data", ".data.rel" |
876 | #define TEXT_SECTIONS ".text", ".text.unlikely" | 876 | #define TEXT_SECTIONS ".text", ".text.unlikely", ".sched.text", \ |
877 | ".kprobes.text" | ||
877 | 878 | ||
878 | #define INIT_SECTIONS ".init.*" | 879 | #define INIT_SECTIONS ".init.*" |
879 | #define MEM_INIT_SECTIONS ".meminit.*" | 880 | #define MEM_INIT_SECTIONS ".meminit.*" |