forked from OSchip/llvm-project
Revert "[Core] Update ContentPermissions"
This reverts commit r228381. The MachO writer uses the permissions as bit masks. llvm-svn: 228401
This commit is contained in:
parent
0b9234baef
commit
6aa03e230c
|
@ -157,14 +157,14 @@ public:
|
|||
// important, because the layout pass may sort atoms by permission if other
|
||||
// attributes are the same.
|
||||
enum ContentPermissions {
|
||||
perm___, // mapped as unaccessible
|
||||
permR__, // mapped read-only
|
||||
permRW_, // mapped readable and writable
|
||||
permRW_L, // initially mapped r/w, then made read-only
|
||||
// loader writable
|
||||
permR_X, // mapped readable and executable
|
||||
permRWX, // mapped readable and writable and executable
|
||||
permUnknown // unknown or invalid permissions
|
||||
perm___ = 0, // mapped as unaccessible
|
||||
permR__ = 8, // mapped read-only
|
||||
permRW_ = 8 + 2, // mapped readable and writable
|
||||
permRW_L = 8 + 2 + 1, // initially mapped r/w, then made read-only
|
||||
// loader writable
|
||||
permR_X = 8 + 4, // mapped readable and executable
|
||||
permRWX = 8 + 2 + 4, // mapped readable and writable and executable
|
||||
permUnknown = 16 // unknown or invalid permissions
|
||||
};
|
||||
|
||||
enum SectionChoice {
|
||||
|
|
Loading…
Reference in New Issue