Skip to content

Instantly share code, notes, and snippets.

@samsonjs
Created January 19, 2010 03:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samsonjs/280643 to your computer and use it in GitHub Desktop.
Save samsonjs/280643 to your computer and use it in GitHub Desktop.
class Section < CStruct
string :sectname, 16
string :segname, 16
uint32 :addr
uint32 :size
uint32 :offset
uint32 :align
uint32 :reloff
uint32 :nreloc
uint32 :flags
uint32 :reserved1
uint32 :reserved2
end
# Values for the type bitfield of the flags field (mask 0xff).
# (incomplete)
S_REGULAR = 0x0
S_ZEROFILL = 0x1
S_CSTRING_LITERALS = 0x2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment