From a1787343778e991241def46305bf7206501752ad Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Tue, 22 Feb 2011 21:04:15 +0100 Subject: [PATCH] Add constants, which defines the permissions on sections in the program header. --- arch/x86/include/asm/elf.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/x86/include/asm/elf.h b/arch/x86/include/asm/elf.h index 25b2fb7d..e4d74ad9 100644 --- a/arch/x86/include/asm/elf.h +++ b/arch/x86/include/asm/elf.h @@ -77,6 +77,12 @@ extern "C" { #define ELF_PT_LOPROC 0x70000000 /* Start of processor-specific */ #define ELF_PT_HIPROC 0x7fffffff /* End of processor-specific */ +/* These constants define the permissions on sections in the program + header, p_flags. */ +#define PF_R 0x4 +#define PF_W 0x2 +#define PF_X 0x1 + typedef struct { uint32_t magic; uint8_t _class;