1 #ifndef _ASM_ARM_MODULE_H
2 #define _ASM_ARM_MODULE_H
4 #include <asm-generic/module.h>
8 #ifdef CONFIG_ARM_UNWIND
22 struct elf32_shdr *plt;
26 struct mod_arch_specific {
27 #ifdef CONFIG_ARM_UNWIND
28 struct unwind_table *unwind[ARM_SEC_MAX];
30 #ifdef CONFIG_ARM_MODULE_PLTS
31 struct mod_plt_sec core;
32 struct mod_plt_sec init;
36 u32 get_module_plt(struct module *mod, unsigned long loc, Elf32_Addr val);
39 * Add the ARM architecture version to the version magic string
41 #define MODULE_ARCH_VERMAGIC_ARMVSN "ARMv" __stringify(__LINUX_ARM_ARCH__) " "
43 /* Add __virt_to_phys patching state as well */
44 #ifdef CONFIG_ARM_PATCH_PHYS_VIRT
45 #define MODULE_ARCH_VERMAGIC_P2V "p2v8 "
47 #define MODULE_ARCH_VERMAGIC_P2V ""
50 /* Add instruction set architecture tag to distinguish ARM/Thumb kernels */
51 #ifdef CONFIG_THUMB2_KERNEL
52 #define MODULE_ARCH_VERMAGIC_ARMTHUMB "thumb2 "
54 #define MODULE_ARCH_VERMAGIC_ARMTHUMB ""
57 #define MODULE_ARCH_VERMAGIC \
58 MODULE_ARCH_VERMAGIC_ARMVSN \
59 MODULE_ARCH_VERMAGIC_ARMTHUMB \
60 MODULE_ARCH_VERMAGIC_P2V
62 #endif /* _ASM_ARM_MODULE_H */