Class: Elf::ElfFile
- Inherits:
-
Object
- Object
- Elf::ElfFile
- Defined in:
- lib/mithril/elf.rb,
lib/mithril/policy/inject_policy.rb
Instance Attribute Summary collapse
-
#bits ⇒ Object
Returns the value of attribute bits.
-
#dynamic ⇒ Object
Returns the value of attribute dynamic.
-
#endian ⇒ Object
Returns the value of attribute endian.
-
#entry ⇒ Object
Returns the value of attribute entry.
-
#extra_phdrs ⇒ Object
Returns the value of attribute extra_phdrs.
-
#filetype ⇒ Object
Returns the value of attribute filetype.
-
#flags ⇒ Object
Returns the value of attribute flags.
-
#gnu_tls ⇒ Object
Returns the value of attribute gnu_tls.
-
#interp ⇒ Object
Returns the value of attribute interp.
-
#machine ⇒ Object
Returns the value of attribute machine.
-
#nobits ⇒ Object
Returns the value of attribute nobits.
-
#notes ⇒ Object
Returns the value of attribute notes.
-
#pinned_sections ⇒ Object
Some binaries rely on specific address layouts (esp. ld.so).
-
#progbits ⇒ Object
Returns the value of attribute progbits.
-
#relocations ⇒ Object
Returns the value of attribute relocations.
-
#symbols ⇒ Object
, :relocated_symbols.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
- #build_policy(&builder) ⇒ Object
-
#initialize ⇒ ElfFile
constructor
A new instance of ElfFile.
Constructor Details
#initialize ⇒ ElfFile
Returns a new instance of ElfFile.
209 210 211 212 213 214 215 216 217 |
# File 'lib/mithril/elf.rb', line 209 def initialize @dynamic = Dynamic.new @relocations = [] @progbits = [] @nobits = [] @pinned_sections = {} @notes = [] @symbols = SymbolTable.new end |
Instance Attribute Details
#bits ⇒ Object
Returns the value of attribute bits.
207 208 209 |
# File 'lib/mithril/elf.rb', line 207 def bits @bits end |
#dynamic ⇒ Object
Returns the value of attribute dynamic.
204 205 206 |
# File 'lib/mithril/elf.rb', line 204 def dynamic @dynamic end |
#endian ⇒ Object
Returns the value of attribute endian.
207 208 209 |
# File 'lib/mithril/elf.rb', line 207 def endian @endian end |
#entry ⇒ Object
Returns the value of attribute entry.
203 204 205 |
# File 'lib/mithril/elf.rb', line 203 def entry @entry end |
#extra_phdrs ⇒ Object
Returns the value of attribute extra_phdrs.
207 208 209 |
# File 'lib/mithril/elf.rb', line 207 def extra_phdrs @extra_phdrs end |
#filetype ⇒ Object
Returns the value of attribute filetype.
203 204 205 |
# File 'lib/mithril/elf.rb', line 203 def filetype @filetype end |
#flags ⇒ Object
Returns the value of attribute flags.
203 204 205 |
# File 'lib/mithril/elf.rb', line 203 def flags @flags end |
#gnu_tls ⇒ Object
Returns the value of attribute gnu_tls.
205 206 207 |
# File 'lib/mithril/elf.rb', line 205 def gnu_tls @gnu_tls end |
#interp ⇒ Object
Returns the value of attribute interp.
207 208 209 |
# File 'lib/mithril/elf.rb', line 207 def interp @interp end |
#machine ⇒ Object
Returns the value of attribute machine.
203 204 205 |
# File 'lib/mithril/elf.rb', line 203 def machine @machine end |
#nobits ⇒ Object
Returns the value of attribute nobits.
204 205 206 |
# File 'lib/mithril/elf.rb', line 204 def nobits @nobits end |
#notes ⇒ Object
Returns the value of attribute notes.
207 208 209 |
# File 'lib/mithril/elf.rb', line 207 def notes @notes end |
#pinned_sections ⇒ Object
Some binaries rely on specific address layouts (esp. ld.so)
208 209 210 |
# File 'lib/mithril/elf.rb', line 208 def pinned_sections @pinned_sections end |
#progbits ⇒ Object
Returns the value of attribute progbits.
204 205 206 |
# File 'lib/mithril/elf.rb', line 204 def progbits @progbits end |
#relocations ⇒ Object
Returns the value of attribute relocations.
204 205 206 |
# File 'lib/mithril/elf.rb', line 204 def relocations @relocations end |
#symbols ⇒ Object
, :relocated_symbols
206 207 208 |
# File 'lib/mithril/elf.rb', line 206 def symbols @symbols end |
#version ⇒ Object
Returns the value of attribute version.
203 204 205 |
# File 'lib/mithril/elf.rb', line 203 def version @version end |