Class: MachO::LoadCommands::EntryPointCommand
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::LoadCommands::EntryPointCommand
- Defined in:
- lib/macho/load_commands.rb
Overview
A load command specifying the offset of main(). Corresponds to LC_MAIN.
Instance Method Summary collapse
-
#entryoff ⇒ Integer
The file (__TEXT) offset of main().
-
#stacksize ⇒ Integer
If not 0, the initial stack size.
-
#to_h ⇒ Hash
A hash representation of this EntryPointCommand.
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
#entryoff ⇒ Integer
Returns the file (__TEXT) offset of main().
1318 |
# File 'lib/macho/load_commands.rb', line 1318 field :entryoff, :uint64 |
#stacksize ⇒ Integer
Returns if not 0, the initial stack size.
1321 |
# File 'lib/macho/load_commands.rb', line 1321 field :stacksize, :uint64 |
#to_h ⇒ Hash
Returns a hash representation of this MachO::LoadCommands::EntryPointCommand.
1324 1325 1326 1327 1328 1329 |
# File 'lib/macho/load_commands.rb', line 1324 def to_h { "entryoff" => entryoff, "stacksize" => stacksize, }.merge super end |