Add constants, which defines the permissions on sections in the program header.

This commit is contained in:
Stefan Lankes 2011-02-22 21:04:15 +01:00
parent 2e6e1c78ea
commit a178734377

View file

@ -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;