lief-project / LIEF

LIEF - Library to Instrument Executable Formats

Home Page:https://lief.re

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Protections numbers meaning in Mach-O

mustaphaezzali opened this issue · comments

Describe the bug
I could not find the meaning of protections numbers (0,1,3,5,7) of Mach-O segments in lief documentation.

Environment (please complete the following information):

  • System and Version : Ubuntu 16.04 , version = 0.12.3
  • Target format : Mach-O

These numbers represent the classical protection flags:

  • X = 1
  • W = 2
  • R = 4

Thus, 7 is R | W | X