This source file includes following definitions.
- elf_check_arch
- elf_set_personality
1
2
3
4
5
6
7
8
9 #include <linux/module.h>
10 #include <linux/sched.h>
11 #include <linux/personality.h>
12 #include <linux/binfmts.h>
13 #include <linux/elf.h>
14
15 int elf_check_arch(const struct elf32_hdr *x)
16 {
17
18 if (x->e_machine != EM_UNICORE)
19 return 0;
20
21
22 if (x->e_entry & 3)
23 return 0;
24
25 return 1;
26 }
27 EXPORT_SYMBOL(elf_check_arch);
28
29 void elf_set_personality(const struct elf32_hdr *x)
30 {
31 unsigned int personality = PER_LINUX;
32
33 set_personality(personality);
34 }
35 EXPORT_SYMBOL(elf_set_personality);