diff options
author | Raghu Gandham <raghu@mips.com> | 2012-09-21 17:13:25 -0700 |
---|---|---|
committer | Raghu Gandham <raghu@mips.com> | 2012-09-21 17:14:05 -0700 |
commit | 988ff8ff9fb8bb3394d5571ce088b23dc828edb5 (patch) | |
tree | 7611d4872120758dc0c182573c16ce914940b146 /libc/kernel/arch-mips/asm/module.h | |
parent | 47dc4d431017e701239dd7d9a16333e0ad56a0ac (diff) | |
download | android_bionic-988ff8ff9fb8bb3394d5571ce088b23dc828edb5.tar.gz android_bionic-988ff8ff9fb8bb3394d5571ce088b23dc828edb5.tar.bz2 android_bionic-988ff8ff9fb8bb3394d5571ce088b23dc828edb5.zip |
[MIPS] Add CONFIG_32BIT to kernel_default_arch_macros for MIPS.
Some of the required structure definitons are defined under this macro.
Change-Id: I7a9a986e371381697dcb56bd8ea362856ffa7509
Diffstat (limited to 'libc/kernel/arch-mips/asm/module.h')
-rw-r--r-- | libc/kernel/arch-mips/asm/module.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libc/kernel/arch-mips/asm/module.h b/libc/kernel/arch-mips/asm/module.h index 45808e97c..dd242903a 100644 --- a/libc/kernel/arch-mips/asm/module.h +++ b/libc/kernel/arch-mips/asm/module.h @@ -49,8 +49,20 @@ typedef struct { Elf64_Byte r_type; Elf64_Sxword r_addend; } Elf64_Mips_Rela; +#define Elf_Shdr Elf32_Shdr +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define Elf_Sym Elf32_Sym +#define Elf_Ehdr Elf32_Ehdr +#define Elf_Addr Elf32_Addr +#define Elf_Mips_Rel Elf32_Rel +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define Elf_Mips_Rela Elf32_Rela +#define ELF_MIPS_R_SYM(rel) ELF32_R_SYM(rel.r_info) +#define ELF_MIPS_R_TYPE(rel) ELF32_R_TYPE(rel.r_info) #error MODULE_PROC_FAMILY undefined for your processor configuration /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define MODULE_KERNEL_TYPE "32BIT " #define MODULE_KERNEL_SMTC "" #define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY MODULE_KERNEL_TYPE MODULE_KERNEL_SMTC #endif +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |