~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/elf.h

Version: ~ [ linux-5.9-rc5 ] ~ [ linux-5.8.10 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.66 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.146 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.198 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.236 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.236 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.85 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #ifndef _LINUX_ELF_H
  3 #define _LINUX_ELF_H
  4 
  5 #include <asm/elf.h>
  6 #include <uapi/linux/elf.h>
  7 
  8 #ifndef elf_read_implies_exec
  9   /* Executables for which elf_read_implies_exec() returns TRUE will
 10      have the READ_IMPLIES_EXEC personality flag set automatically.
 11      Override in asm/elf.h as needed.  */
 12 # define elf_read_implies_exec(ex, have_pt_gnu_stack)   0
 13 #endif
 14 #ifndef SET_PERSONALITY
 15 #define SET_PERSONALITY(ex) \
 16         set_personality(PER_LINUX | (current->personality & (~PER_MASK)))
 17 #endif
 18 
 19 #ifndef SET_PERSONALITY2
 20 #define SET_PERSONALITY2(ex, state) \
 21         SET_PERSONALITY(ex)
 22 #endif
 23 
 24 #if ELF_CLASS == ELFCLASS32
 25 
 26 extern Elf32_Dyn _DYNAMIC [];
 27 #define elfhdr          elf32_hdr
 28 #define elf_phdr        elf32_phdr
 29 #define elf_shdr        elf32_shdr
 30 #define elf_note        elf32_note
 31 #define elf_addr_t      Elf32_Off
 32 #define Elf_Half        Elf32_Half
 33 #define Elf_Word        Elf32_Word
 34 
 35 #else
 36 
 37 extern Elf64_Dyn _DYNAMIC [];
 38 #define elfhdr          elf64_hdr
 39 #define elf_phdr        elf64_phdr
 40 #define elf_shdr        elf64_shdr
 41 #define elf_note        elf64_note
 42 #define elf_addr_t      Elf64_Off
 43 #define Elf_Half        Elf64_Half
 44 #define Elf_Word        Elf64_Word
 45 
 46 #endif
 47 
 48 /* Optional callbacks to write extra ELF notes. */
 49 struct file;
 50 struct coredump_params;
 51 
 52 #ifndef ARCH_HAVE_EXTRA_ELF_NOTES
 53 static inline int elf_coredump_extra_notes_size(void) { return 0; }
 54 static inline int elf_coredump_extra_notes_write(struct coredump_params *cprm) { return 0; }
 55 #else
 56 extern int elf_coredump_extra_notes_size(void);
 57 extern int elf_coredump_extra_notes_write(struct coredump_params *cprm);
 58 #endif
 59 #endif /* _LINUX_ELF_H */
 60 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp