mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-12 07:37:34 +00:00
Add segment flag bits to ELF.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68438 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e6b487931c
commit
4e9ca339b5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user