summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2009-04-05 09:07:08 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2009-04-05 09:07:08 +0000
commitb5fe65091d008481385738ed4506d4143b9d4ed2 (patch)
tree1e89b8b26b1d29bfb89f06746986e35d5f8fad52 /llvm
parentd3ebd551b99f84d57323da6705e2249f3c577795 (diff)
downloadbcm5719-llvm-b5fe65091d008481385738ed4506d4143b9d4ed2.tar.gz
bcm5719-llvm-b5fe65091d008481385738ed4506d4143b9d4ed2.zip
Add segment flag bits to ELF.h.
llvm-svn: 68438
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Support/ELF.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/ELF.h b/llvm/include/llvm/Support/ELF.h
index 3552c872eeb..01c72a3afa2 100644
--- a/llvm/include/llvm/Support/ELF.h
+++ b/llvm/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
OpenPOWER on IntegriCloud