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()



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

field :entryoff, :uint64

#stacksizeInteger

Returns if not 0, the initial stack size.

Returns:

  • (Integer)

    if not 0, the initial stack size.



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

field :stacksize, :uint64

#to_hHash

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

Returns:



1324
1325
1326
1327
1328
1329
# File 'lib/macho/load_commands.rb', line 1324

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