# File metasm/exe_format/macho.rb, line 189 def decode(m) super(m) @reserved = m.decode_word if m.size == 64 end
# File metasm/exe_format/macho.rb, line 175 def set_default_values(m) @magic ||= case [m.size, m.endianness] when [32, :big]; MAGIC when [32, :little]; CIGAM when [64, :big]; MAGIC64 when [64, :little]; CIGAM64 end @cpusubtype ||= 'ALL' @filetype ||= 'EXECUTE' @ncmds ||= m.commands.length @sizeofcmds ||= m.new_label('sizeofcmds') super(m) end