Class: MachO::LoadCommands::EntryPointCommand

Inherits:
LoadCommand show all
Defined in:
lib/macho/load_commands.rb

Overview

A load command specifying the offset of main(). Corresponds to LC_MAIN.

Instance Method Summary collapse

Methods inherited from LoadCommand

#cmd, #cmdsize, create, new_from_bin, #offset, #serializable?, #serialize, #to_s, #type, #view

Methods inherited from MachOStructure

bytesize, format, #initialize, new_from_bin

Constructor Details

This class inherits a constructor from MachO::MachOStructure

Instance Method Details

#entryoffInteger

Returns the file (__TEXT) offset of main().

Returns:

  • (Integer)

    the file (__TEXT) offset of main()



1219
# File 'lib/macho/load_commands.rb', line 1219

field :entryoff, :uint64

#stacksizeInteger

Returns if not 0, the initial stack size.

Returns:

  • (Integer)

    if not 0, the initial stack size.



1222
# File 'lib/macho/load_commands.rb', line 1222

field :stacksize, :uint64

#to_hHash

Returns a hash representation of this MachO::LoadCommands::EntryPointCommand.

Returns:



1225
1226
1227
1228
1229
1230
# File 'lib/macho/load_commands.rb', line 1225

def to_h
  {
    "entryoff" => entryoff,
    "stacksize" => stacksize,
  }.merge super
end