1
2
3
4
5
6
7
8 #include <linux/elf.h>
9 #include <asm/module.h>
10
11 struct load_info {
12 const char *name;
13
14 struct module *mod;
15 Elf_Ehdr *hdr;
16 unsigned long len;
17 Elf_Shdr *sechdrs;
18 char *secstrings, *strtab;
19 unsigned long symoffs, stroffs, init_typeoffs, core_typeoffs;
20 struct _ddebug *debug;
21 unsigned int num_debug;
22 bool sig_ok;
23 #ifdef CONFIG_KALLSYMS
24 unsigned long mod_kallsyms_init_off;
25 #endif
26 struct {
27 unsigned int sym, str, mod, vers, info, pcpu;
28 } index;
29 };
30
31 extern int mod_verify_sig(const void *mod, struct load_info *info);