Merge tag 'modules-for-v5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu...
[sfrench/cifs-2.6.git] / arch / arm / kernel / module.c
index b3d439c41c7b8bbd1afee9e3db873d38104a34bc..deef17f34bd277f55b384ca16686111a4b82e93c 100644 (file)
@@ -55,6 +55,13 @@ void *module_alloc(unsigned long size)
 }
 #endif
 
+bool module_exit_section(const char *name)
+{
+       return strstarts(name, ".exit") ||
+               strstarts(name, ".ARM.extab.exit") ||
+               strstarts(name, ".ARM.exidx.exit");
+}
+
 int
 apply_relocate(Elf32_Shdr *sechdrs, const char *strtab, unsigned int symindex,
               unsigned int relindex, struct module *module)