Class: Rubycc::ObjFile::ELFReader::Section
- Inherits:
-
Struct
- Object
- Struct
- Rubycc::ObjFile::ELFReader::Section
- Defined in:
- lib/rubycc/objfile/elf_reader.rb
Overview
A parsed section header plus (for non-NOBITS sections) its raw file bytes.
index is the section's position in the header table — the value other
sections' sh_link/sh_info and symbols' st_shndx refer to. data is nil
for SHT_NULL and SHT_NOBITS (.bss), which occupy no file bytes while
still reporting their in-memory size.
Instance Attribute Summary collapse
-
#addr ⇒ Object
Returns the value of attribute addr.
-
#addralign ⇒ Object
Returns the value of attribute addralign.
-
#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.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#size ⇒ Object
Returns the value of attribute size.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#addr ⇒ Object
Returns the value of attribute addr
170 171 172 |
# File 'lib/rubycc/objfile/elf_reader.rb', line 170 def addr @addr end |
#addralign ⇒ Object
Returns the value of attribute addralign
170 171 172 |
# File 'lib/rubycc/objfile/elf_reader.rb', line 170 def addralign @addralign end |
#data ⇒ Object
Returns the value of attribute data
170 171 172 |
# File 'lib/rubycc/objfile/elf_reader.rb', line 170 def data @data end |
#entsize ⇒ Object
Returns the value of attribute entsize
170 171 172 |
# File 'lib/rubycc/objfile/elf_reader.rb', line 170 def entsize @entsize end |
#flags ⇒ Object
Returns the value of attribute flags
170 171 172 |
# File 'lib/rubycc/objfile/elf_reader.rb', line 170 def flags @flags end |
#index ⇒ Object
Returns the value of attribute index
170 171 172 |
# File 'lib/rubycc/objfile/elf_reader.rb', line 170 def index @index end |
#info ⇒ Object
Returns the value of attribute info
170 171 172 |
# File 'lib/rubycc/objfile/elf_reader.rb', line 170 def info @info end |
#link ⇒ Object
Returns the value of attribute link
170 171 172 |
# File 'lib/rubycc/objfile/elf_reader.rb', line 170 def link @link end |
#name ⇒ Object
Returns the value of attribute name
170 171 172 |
# File 'lib/rubycc/objfile/elf_reader.rb', line 170 def name @name end |
#offset ⇒ Object
Returns the value of attribute offset
170 171 172 |
# File 'lib/rubycc/objfile/elf_reader.rb', line 170 def offset @offset end |
#size ⇒ Object
Returns the value of attribute size
170 171 172 |
# File 'lib/rubycc/objfile/elf_reader.rb', line 170 def size @size end |
#type ⇒ Object
Returns the value of attribute type
170 171 172 |
# File 'lib/rubycc/objfile/elf_reader.rb', line 170 def type @type end |
Instance Method Details
#nobits? ⇒ Boolean
174 |
# File 'lib/rubycc/objfile/elf_reader.rb', line 174 def nobits? = type == SHT_NOBITS |