diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2009-04-05 09:07:08 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2009-04-05 09:07:08 +0000 |
commit | 5e0819ba7c11e0938a74c9671782df9a1191680c (patch) | |
tree | 26d60b74c88dc10d749c5eae5a232e01cd6c690c /include/llvm/Support/ELF.h | |
parent | 0641d16d477e82206c775f6dfbb9e770290e0234 (diff) | |
download | external_llvm-5e0819ba7c11e0938a74c9671782df9a1191680c.zip external_llvm-5e0819ba7c11e0938a74c9671782df9a1191680c.tar.gz external_llvm-5e0819ba7c11e0938a74c9671782df9a1191680c.tar.bz2 |
Add segment flag bits to ELF.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68438 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/ELF.h')
-rw-r--r-- | include/llvm/Support/ELF.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/Support/ELF.h b/include/llvm/Support/ELF.h index 3552c87..01c72a3 100644 --- a/include/llvm/Support/ELF.h +++ b/include/llvm/Support/ELF.h @@ -280,6 +280,7 @@ struct Elf32_Phdr { Elf32_Word p_align; // Segment alignment constraint }; +// Segment types. enum { PT_NULL = 0, // Unused segment. PT_LOAD = 1, // Loadable segment. @@ -292,6 +293,14 @@ enum { PT_HIPROC = 0x7fffffff // Highest processor-specific program hdr entry type. }; +// Segment flag bits. +enum { + PF_X = 1, // Execute + PF_W = 2, // Write + PF_R = 4, // Read + PF_MASKPROC = 0xf0000000 // Unspecified +}; + } // end namespace ELF } // end namespace llvm |