Class: OdinFlex::MachO::Section
- Inherits:
-
Struct
- Object
- Struct
- OdinFlex::MachO::Section
- Includes:
- SectionTypes
- Defined in:
- lib/odinflex/mach-o.rb
Instance Attribute Summary collapse
-
#addr ⇒ Object
Returns the value of attribute addr.
-
#align ⇒ Object
Returns the value of attribute align.
-
#flags ⇒ Object
Returns the value of attribute flags.
-
#io ⇒ Object
Returns the value of attribute io.
-
#nreloc ⇒ Object
Returns the value of attribute nreloc.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#reloff ⇒ Object
Returns the value of attribute reloff.
-
#reserved1 ⇒ Object
Returns the value of attribute reserved1.
-
#reserved2 ⇒ Object
Returns the value of attribute reserved2.
-
#reserved3 ⇒ Object
Returns the value of attribute reserved3.
-
#sectname ⇒ Object
Returns the value of attribute sectname.
-
#segname ⇒ Object
Returns the value of attribute segname.
-
#size ⇒ Object
Returns the value of attribute size.
-
#start_pos ⇒ Object
Returns the value of attribute start_pos.
Instance Method Summary collapse
Methods included from SectionTypes
#command?, #dysymtab?, #segment?, #symtab?
Instance Attribute Details
#addr ⇒ Object
Returns the value of attribute addr
440 441 442 |
# File 'lib/odinflex/mach-o.rb', line 440 def addr @addr end |
#align ⇒ Object
Returns the value of attribute align
440 441 442 |
# File 'lib/odinflex/mach-o.rb', line 440 def align @align end |
#flags ⇒ Object
Returns the value of attribute flags
440 441 442 |
# File 'lib/odinflex/mach-o.rb', line 440 def flags @flags end |
#io ⇒ Object
Returns the value of attribute io
440 441 442 |
# File 'lib/odinflex/mach-o.rb', line 440 def io @io end |
#nreloc ⇒ Object
Returns the value of attribute nreloc
440 441 442 |
# File 'lib/odinflex/mach-o.rb', line 440 def nreloc @nreloc end |
#offset ⇒ Object
Returns the value of attribute offset
440 441 442 |
# File 'lib/odinflex/mach-o.rb', line 440 def offset @offset end |
#reloff ⇒ Object
Returns the value of attribute reloff
440 441 442 |
# File 'lib/odinflex/mach-o.rb', line 440 def reloff @reloff end |
#reserved1 ⇒ Object
Returns the value of attribute reserved1
440 441 442 |
# File 'lib/odinflex/mach-o.rb', line 440 def reserved1 @reserved1 end |
#reserved2 ⇒ Object
Returns the value of attribute reserved2
440 441 442 |
# File 'lib/odinflex/mach-o.rb', line 440 def reserved2 @reserved2 end |
#reserved3 ⇒ Object
Returns the value of attribute reserved3
440 441 442 |
# File 'lib/odinflex/mach-o.rb', line 440 def reserved3 @reserved3 end |
#sectname ⇒ Object
Returns the value of attribute sectname
440 441 442 |
# File 'lib/odinflex/mach-o.rb', line 440 def sectname @sectname end |
#segname ⇒ Object
Returns the value of attribute segname
440 441 442 |
# File 'lib/odinflex/mach-o.rb', line 440 def segname @segname end |
#size ⇒ Object
Returns the value of attribute size
440 441 442 |
# File 'lib/odinflex/mach-o.rb', line 440 def size @size end |
#start_pos ⇒ Object
Returns the value of attribute start_pos
440 441 442 |
# File 'lib/odinflex/mach-o.rb', line 440 def start_pos @start_pos end |
Instance Method Details
#as_dwarf ⇒ Object
446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 |
# File 'lib/odinflex/mach-o.rb', line 446 def as_dwarf raise NotImplementedError, "load WORF" unless defined?(::WORF) case sectname when "__debug_abbrev" WORF::DebugAbbrev.new io, self, start_pos when "__debug_info" WORF::DebugInfo.new io, self, start_pos when "__debug_str" WORF::DebugStrings.new io, self, start_pos when "__debug_line" WORF::DebugLine.new io, self, start_pos else raise NotImplementedError end end |
#section? ⇒ Boolean
444 |
# File 'lib/odinflex/mach-o.rb', line 444 def section?; true; end |