Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7e0abcf authored by Thierry Reding's avatar Thierry Reding Committed by Rusty Russell
Browse files

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: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent b9cc4489
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.*"