diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-powerpc/elf.h | 2 | ||||
-rw-r--r-- | include/linux/elf.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-powerpc/elf.h b/include/asm-powerpc/elf.h index b5436642a109..d36426c01b6b 100644 --- a/include/asm-powerpc/elf.h +++ b/include/asm-powerpc/elf.h | |||
@@ -124,12 +124,10 @@ typedef elf_greg_t32 elf_gregset_t32[ELF_NGREG]; | |||
124 | # define ELF_DATA ELFDATA2MSB | 124 | # define ELF_DATA ELFDATA2MSB |
125 | typedef elf_greg_t64 elf_greg_t; | 125 | typedef elf_greg_t64 elf_greg_t; |
126 | typedef elf_gregset_t64 elf_gregset_t; | 126 | typedef elf_gregset_t64 elf_gregset_t; |
127 | # define elf_addr_t unsigned long | ||
128 | #else | 127 | #else |
129 | /* Assumption: ELF_ARCH == EM_PPC and ELF_CLASS == ELFCLASS32 */ | 128 | /* Assumption: ELF_ARCH == EM_PPC and ELF_CLASS == ELFCLASS32 */ |
130 | typedef elf_greg_t32 elf_greg_t; | 129 | typedef elf_greg_t32 elf_greg_t; |
131 | typedef elf_gregset_t32 elf_gregset_t; | 130 | typedef elf_gregset_t32 elf_gregset_t; |
132 | # define elf_addr_t __u32 | ||
133 | #endif /* ELF_ARCH */ | 131 | #endif /* ELF_ARCH */ |
134 | 132 | ||
135 | /* Floating point registers */ | 133 | /* Floating point registers */ |
diff --git a/include/linux/elf.h b/include/linux/elf.h index 743d5c8e6d36..b403516d5c3d 100644 --- a/include/linux/elf.h +++ b/include/linux/elf.h | |||
@@ -358,6 +358,7 @@ extern Elf32_Dyn _DYNAMIC []; | |||
358 | #define elfhdr elf32_hdr | 358 | #define elfhdr elf32_hdr |
359 | #define elf_phdr elf32_phdr | 359 | #define elf_phdr elf32_phdr |
360 | #define elf_note elf32_note | 360 | #define elf_note elf32_note |
361 | #define elf_addr_t Elf32_Off | ||
361 | 362 | ||
362 | #else | 363 | #else |
363 | 364 | ||
@@ -365,6 +366,7 @@ extern Elf64_Dyn _DYNAMIC []; | |||
365 | #define elfhdr elf64_hdr | 366 | #define elfhdr elf64_hdr |
366 | #define elf_phdr elf64_phdr | 367 | #define elf_phdr elf64_phdr |
367 | #define elf_note elf64_note | 368 | #define elf_note elf64_note |
369 | #define elf_addr_t Elf64_Off | ||
368 | 370 | ||
369 | #endif | 371 | #endif |
370 | 372 | ||