diff options
Diffstat (limited to 'include/linux/elf.h')
-rw-r--r-- | include/linux/elf.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/elf.h b/include/linux/elf.h index b70d1d2c8d28..60713e6ea297 100644 --- a/include/linux/elf.h +++ b/include/linux/elf.h | |||
@@ -6,6 +6,8 @@ | |||
6 | #include <linux/elf-em.h> | 6 | #include <linux/elf-em.h> |
7 | #include <asm/elf.h> | 7 | #include <asm/elf.h> |
8 | 8 | ||
9 | struct file; | ||
10 | |||
9 | #ifndef elf_read_implies_exec | 11 | #ifndef elf_read_implies_exec |
10 | /* Executables for which elf_read_implies_exec() returns TRUE will | 12 | /* Executables for which elf_read_implies_exec() returns TRUE will |
11 | have the READ_IMPLIES_EXEC personality flag set automatically. | 13 | have the READ_IMPLIES_EXEC personality flag set automatically. |
@@ -358,6 +360,7 @@ extern Elf32_Dyn _DYNAMIC []; | |||
358 | #define elfhdr elf32_hdr | 360 | #define elfhdr elf32_hdr |
359 | #define elf_phdr elf32_phdr | 361 | #define elf_phdr elf32_phdr |
360 | #define elf_note elf32_note | 362 | #define elf_note elf32_note |
363 | #define elf_addr_t Elf32_Off | ||
361 | 364 | ||
362 | #else | 365 | #else |
363 | 366 | ||
@@ -365,8 +368,16 @@ extern Elf64_Dyn _DYNAMIC []; | |||
365 | #define elfhdr elf64_hdr | 368 | #define elfhdr elf64_hdr |
366 | #define elf_phdr elf64_phdr | 369 | #define elf_phdr elf64_phdr |
367 | #define elf_note elf64_note | 370 | #define elf_note elf64_note |
371 | #define elf_addr_t Elf64_Off | ||
368 | 372 | ||
369 | #endif | 373 | #endif |
370 | 374 | ||
375 | #ifndef ARCH_HAVE_EXTRA_ELF_NOTES | ||
376 | static inline int arch_notes_size(void) { return 0; } | ||
377 | static inline void arch_write_notes(struct file *file) { } | ||
378 | |||
379 | #define ELF_CORE_EXTRA_NOTES_SIZE arch_notes_size() | ||
380 | #define ELF_CORE_WRITE_EXTRA_NOTES arch_write_notes(file) | ||
381 | #endif /* ARCH_HAVE_EXTRA_ELF_NOTES */ | ||
371 | 382 | ||
372 | #endif /* _LINUX_ELF_H */ | 383 | #endif /* _LINUX_ELF_H */ |