[llvm-commits] [llvm] r68438 - /llvm/trunk/include/llvm/Support/ELF.h
Mikhail Glushenkov
foldr at codedgers.com
Sun Apr 5 02:07:20 PDT 2009
Author: foldr
Date: Sun Apr 5 04:07:08 2009
New Revision: 68438
URL: http://llvm.org/viewvc/llvm-project?rev=68438&view=rev
Log:
Add segment flag bits to ELF.h.
Modified:
llvm/trunk/include/llvm/Support/ELF.h
Modified: llvm/trunk/include/llvm/Support/ELF.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/ELF.h?rev=68438&r1=68437&r2=68438&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/ELF.h (original)
+++ llvm/trunk/include/llvm/Support/ELF.h Sun Apr 5 04:07:08 2009
@@ -280,6 +280,7 @@
Elf32_Word p_align; // Segment alignment constraint
};
+// Segment types.
enum {
PT_NULL = 0, // Unused segment.
PT_LOAD = 1, // Loadable segment.
@@ -292,6 +293,14 @@
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
More information about the llvm-commits
mailing list