mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[PATCH] elf: Always define elf_addr_t in linux/elf.h
Define elf_addr_t in linux/elf.h. The size of the type is determined using ELF_CLASS. This allows us to remove the defines that today are spread all over .c and .h files. Signed-off-by: Magnus Damm <[email protected]> Cc: Daniel Jacobowitz <[email protected]> Cc: Roland McGrath <[email protected]> Cc: Jakub Jelinek <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
651971cb72
commit
386d9a7edd
12 changed files with 2 additions and 22 deletions
|
|
@ -90,7 +90,6 @@ struct elf_prpsinfo32
|
|||
char pr_psargs[ELF_PRARGSZ]; /* initial part of arg list */
|
||||
};
|
||||
|
||||
#define elf_addr_t u32
|
||||
#define elf_caddr_t u32
|
||||
#define init_elf_binfmt init_elfn32_binfmt
|
||||
|
||||
|
|
|
|||
|
|
@ -92,7 +92,6 @@ struct elf_prpsinfo32
|
|||
char pr_psargs[ELF_PRARGSZ]; /* initial part of arg list */
|
||||
};
|
||||
|
||||
#define elf_addr_t u32
|
||||
#define elf_caddr_t u32
|
||||
#define init_elf_binfmt init_elf32_binfmt
|
||||
|
||||
|
|
|
|||
|
|
@ -52,10 +52,6 @@ static struct linux_binfmt irix_format = {
|
|||
irix_core_dump, PAGE_SIZE
|
||||
};
|
||||
|
||||
#ifndef elf_addr_t
|
||||
#define elf_addr_t unsigned long
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
/* Debugging routines. */
|
||||
static char *get_elf_p_type(Elf32_Word p_type)
|
||||
|
|
|
|||
Loading…
Reference in a new issue