1 #ifndef _ASM_SH_MODULE_H
2 #define _ASM_SH_MODULE_H
5 * This file contains the SH architecture specific module code.
8 struct mod_arch_specific {
9 /* Nothing to see here .. */
12 #define MODULES_ARE_ELF32
13 #define Elf_Shdr Elf32_Shdr
14 #define Elf_Sym Elf32_Sym
15 #define Elf_Ehdr Elf32_Ehdr
16 #define Elf_Rel Elf32_Rel
17 #define Elf_Rela Elf32_Rela
18 #define ELF_R_TYPE(X) ELF32_R_TYPE(X)
19 #define ELF_R_SYM(X) ELF32_R_SYM(X)
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 "
29 # error unknown processor family
32 # ifdef CONFIG_CPU_SH2
33 # define MODULE_PROC_FAMILY "SH2BE "
34 # elif defined CONFIG_CPU_SH3
35 # define MODULE_PROC_FAMILY "SH3BE "
36 # elif defined CONFIG_CPU_SH4
37 # define MODULE_PROC_FAMILY "SH4BE "
39 # error unknown processor family
43 #define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY
45 #endif /* _ASM_SH_MODULE_H */