5 #include <uapi/linux/elf.h>
7 #ifndef elf_read_implies_exec
8 /* Executables for which elf_read_implies_exec() returns TRUE will
9 have the READ_IMPLIES_EXEC personality flag set automatically.
10 Override in asm/elf.h as needed. */
11 # define elf_read_implies_exec(ex, have_pt_gnu_stack) 0
14 #if ELF_CLASS == ELFCLASS32
16 extern Elf32_Dyn _DYNAMIC
[];
17 #define elfhdr elf32_hdr
18 #define elf_phdr elf32_phdr
19 #define elf_shdr elf32_shdr
20 #define elf_note elf32_note
21 #define elf_addr_t Elf32_Off
22 #define Elf_Half Elf32_Half
26 extern Elf64_Dyn _DYNAMIC
[];
27 #define elfhdr elf64_hdr
28 #define elf_phdr elf64_phdr
29 #define elf_shdr elf64_shdr
30 #define elf_note elf64_note
31 #define elf_addr_t Elf64_Off
32 #define Elf_Half Elf64_Half
36 /* Optional callbacks to write extra ELF notes. */
39 #ifndef ARCH_HAVE_EXTRA_ELF_NOTES
40 static inline int elf_coredump_extra_notes_size(void) { return 0; }
41 static inline int elf_coredump_extra_notes_write(struct file
*file
,
42 loff_t
*foffset
) { return 0; }
44 extern int elf_coredump_extra_notes_size(void);
45 extern int elf_coredump_extra_notes_write(struct file
*file
, loff_t
*foffset
);
47 #endif /* _LINUX_ELF_H */
This page took 0.032808 seconds and 6 git commands to generate.