mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 04:35:20 +07:00
607ca46e97
Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Michael Kerrisk <mtk.manpages@gmail.com> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: Dave Jones <davej@redhat.com>
48 lines
1.2 KiB
C
48 lines
1.2 KiB
C
#ifndef _LINUX_ELF_H
|
|
#define _LINUX_ELF_H
|
|
|
|
#include <asm/elf.h>
|
|
#include <uapi/linux/elf.h>
|
|
|
|
#ifndef elf_read_implies_exec
|
|
/* Executables for which elf_read_implies_exec() returns TRUE will
|
|
have the READ_IMPLIES_EXEC personality flag set automatically.
|
|
Override in asm/elf.h as needed. */
|
|
# define elf_read_implies_exec(ex, have_pt_gnu_stack) 0
|
|
#endif
|
|
|
|
#if ELF_CLASS == ELFCLASS32
|
|
|
|
extern Elf32_Dyn _DYNAMIC [];
|
|
#define elfhdr elf32_hdr
|
|
#define elf_phdr elf32_phdr
|
|
#define elf_shdr elf32_shdr
|
|
#define elf_note elf32_note
|
|
#define elf_addr_t Elf32_Off
|
|
#define Elf_Half Elf32_Half
|
|
|
|
#else
|
|
|
|
extern Elf64_Dyn _DYNAMIC [];
|
|
#define elfhdr elf64_hdr
|
|
#define elf_phdr elf64_phdr
|
|
#define elf_shdr elf64_shdr
|
|
#define elf_note elf64_note
|
|
#define elf_addr_t Elf64_Off
|
|
#define Elf_Half Elf64_Half
|
|
|
|
#endif
|
|
|
|
/* Optional callbacks to write extra ELF notes. */
|
|
struct file;
|
|
|
|
#ifndef ARCH_HAVE_EXTRA_ELF_NOTES
|
|
static inline int elf_coredump_extra_notes_size(void) { return 0; }
|
|
static inline int elf_coredump_extra_notes_write(struct file *file,
|
|
loff_t *foffset) { return 0; }
|
|
#else
|
|
extern int elf_coredump_extra_notes_size(void);
|
|
extern int elf_coredump_extra_notes_write(struct file *file, loff_t *foffset);
|
|
#endif
|
|
#endif /* _LINUX_ELF_H */
|