blob: ed5b44de4c915b27b61a2ef77dc58d0c69ecc569 [file] [log] [blame]
Arnd Bergmann06f50132009-06-18 21:48:18 +02001#ifndef __ASM_GENERIC_MODULE_H
2#define __ASM_GENERIC_MODULE_H
Arnd Bergmann4adc6672009-06-18 21:48:16 +02003
Arnd Bergmann06f50132009-06-18 21:48:18 +02004/*
5 * Many architectures just need a simple module
6 * loader without arch specific data.
7 */
8struct mod_arch_specific
9{
10};
Arnd Bergmann4adc6672009-06-18 21:48:16 +020011
Arnd Bergmann06f50132009-06-18 21:48:18 +020012#ifdef CONFIG_64BIT
13#define Elf_Shdr Elf64_Shdr
14#define Elf_Sym Elf64_Sym
15#define Elf_Ehdr Elf64_Ehdr
Arnd Bergmann4adc6672009-06-18 21:48:16 +020016#else
Arnd Bergmann06f50132009-06-18 21:48:18 +020017#define Elf_Shdr Elf32_Shdr
18#define Elf_Sym Elf32_Sym
19#define Elf_Ehdr Elf32_Ehdr
Arnd Bergmann4adc6672009-06-18 21:48:16 +020020#endif
21
Arnd Bergmann06f50132009-06-18 21:48:18 +020022#endif /* __ASM_GENERIC_MODULE_H */