1 #ifndef _ASM_SH_MODULE_H
2 #define _ASM_SH_MODULE_H
4 struct mod_arch_specific
{
5 #ifdef CONFIG_DWARF_UNWINDER
6 struct list_head fde_list
;
7 struct list_head cie_list
;
12 #define Elf_Shdr Elf64_Shdr
13 #define Elf_Sym Elf64_Sym
14 #define Elf_Ehdr Elf64_Ehdr
16 #define Elf_Shdr Elf32_Shdr
17 #define Elf_Sym Elf32_Sym
18 #define Elf_Ehdr Elf32_Ehdr
21 #ifdef CONFIG_CPU_LITTLE_ENDIAN
22 # ifdef CONFIG_CPU_SH2
23 # define MODULE_PROC_FAMILY "SH2LE "
24 # elif defined CONFIG_CPU_SH3
25 # define MODULE_PROC_FAMILY "SH3LE "
26 # elif defined CONFIG_CPU_SH4
27 # define MODULE_PROC_FAMILY "SH4LE "
28 # elif defined CONFIG_CPU_SH5
29 # define MODULE_PROC_FAMILY "SH5LE "
31 # error unknown processor family
34 # ifdef CONFIG_CPU_SH2
35 # define MODULE_PROC_FAMILY "SH2BE "
36 # elif defined CONFIG_CPU_SH3
37 # define MODULE_PROC_FAMILY "SH3BE "
38 # elif defined CONFIG_CPU_SH4
39 # define MODULE_PROC_FAMILY "SH4BE "
40 # elif defined CONFIG_CPU_SH5
41 # define MODULE_PROC_FAMILY "SH5BE "
43 # error unknown processor family
47 #define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY
49 #endif /* _ASM_SH_MODULE_H */