Skip to content

Commit

Permalink
modpost: Whitelist .text.fixup and .exception.text
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
thierryreding authored and rustyrussell committed Apr 22, 2015
1 parent b9cc448 commit d7e0abc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/mod/modpost.c
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ static void check_section(const char *modname, struct elf_info *elf,
#define TEXT_SECTIONS ".text", ".text.unlikely", ".sched.text", \
".kprobes.text"
#define OTHER_TEXT_SECTIONS ".ref.text", ".head.text", ".spinlock.text", \
".fixup", ".entry.text"
".fixup", ".entry.text", ".text.fixup", ".exception.text"

#define INIT_SECTIONS ".init.*"
#define MEM_INIT_SECTIONS ".meminit.*"
Expand Down

0 comments on commit d7e0abc

Please sign in to comment.