Class: Elf::Writer::OutputSection
- Inherits:
-
Object
- Object
- Elf::Writer::OutputSection
- Defined in:
- lib/mithril/writer.rb
Instance Attribute Summary collapse
-
#align ⇒ Object
Returns the value of attribute align.
-
#data ⇒ Object
Returns the value of attribute data.
-
#entsize ⇒ Object
Returns the value of attribute entsize.
-
#flags ⇒ Object
Returns the value of attribute flags.
-
#index ⇒ Object
Returns the value of attribute index.
-
#info ⇒ Object
Returns the value of attribute info.
-
#link ⇒ Object
Returns the value of attribute link.
-
#name ⇒ Object
Returns the value of attribute name.
-
#off ⇒ Object
Returns the value of attribute off.
-
#shdr ⇒ Object
Returns the value of attribute shdr.
-
#siz ⇒ Object
Returns the value of attribute siz.
-
#type ⇒ Object
Returns the value of attribute type.
-
#vaddr ⇒ Object
Returns the value of attribute vaddr.
Instance Method Summary collapse
- #end ⇒ Object
-
#initialize(name, type, flags, vaddr, siz, link, info, align, entsize, data) ⇒ OutputSection
constructor
TODO: Use params array.
Constructor Details
#initialize(name, type, flags, vaddr, siz, link, info, align, entsize, data) ⇒ OutputSection
TODO: Use params array
54 55 56 57 58 |
# File 'lib/mithril/writer.rb', line 54 def initialize(name,type,flags,vaddr,siz,link,info,align,entsize,data) #link and info are strings, offset is done by output stage @name,@type,@flags, @vaddr, @siz, @link, @info, @align, @entsize, @data= name,type,flags,vaddr,siz,link,info,align,entsize, data @off = nil @index = nil end |
Instance Attribute Details
#align ⇒ Object
Returns the value of attribute align.
51 52 53 |
# File 'lib/mithril/writer.rb', line 51 def align @align end |
#data ⇒ Object
Returns the value of attribute data.
51 52 53 |
# File 'lib/mithril/writer.rb', line 51 def data @data end |
#entsize ⇒ Object
Returns the value of attribute entsize.
51 52 53 |
# File 'lib/mithril/writer.rb', line 51 def entsize @entsize end |
#flags ⇒ Object
Returns the value of attribute flags.
51 52 53 |
# File 'lib/mithril/writer.rb', line 51 def flags @flags end |
#index ⇒ Object
Returns the value of attribute index.
52 53 54 |
# File 'lib/mithril/writer.rb', line 52 def index @index end |
#info ⇒ Object
Returns the value of attribute info.
51 52 53 |
# File 'lib/mithril/writer.rb', line 51 def info @info end |
#link ⇒ Object
Returns the value of attribute link.
51 52 53 |
# File 'lib/mithril/writer.rb', line 51 def link @link end |
#name ⇒ Object
Returns the value of attribute name.
51 52 53 |
# File 'lib/mithril/writer.rb', line 51 def name @name end |
#off ⇒ Object
Returns the value of attribute off.
51 52 53 |
# File 'lib/mithril/writer.rb', line 51 def off @off end |
#shdr ⇒ Object
Returns the value of attribute shdr.
51 52 53 |
# File 'lib/mithril/writer.rb', line 51 def shdr @shdr end |
#siz ⇒ Object
Returns the value of attribute siz.
51 52 53 |
# File 'lib/mithril/writer.rb', line 51 def siz @siz end |
#type ⇒ Object
Returns the value of attribute type.
51 52 53 |
# File 'lib/mithril/writer.rb', line 51 def type @type end |
#vaddr ⇒ Object
Returns the value of attribute vaddr.
51 52 53 |
# File 'lib/mithril/writer.rb', line 51 def vaddr @vaddr end |
Instance Method Details
#end ⇒ Object
59 60 61 |
# File 'lib/mithril/writer.rb', line 59 def end @vaddr + @siz end |