Class: Rubycc::ObjFile::ELFReader::RelocationSection

Inherits:
Struct
  • Object
show all
Defined in:
lib/rubycc/objfile/elf_reader.rb

Overview

One SHT_RELA table: the relocations it holds and the Section they patch (its sh_info target, e.g. .text for .rela.text). Grouping by target is what the linker walks when applying fixups section by section.

Instance Attribute Summary collapse

Instance Attribute Details

#relocationsObject

Returns the value of attribute relocations

Returns:

  • (Object)

    the current value of relocations



216
217
218
# File 'lib/rubycc/objfile/elf_reader.rb', line 216

def relocations
  @relocations
end

#sectionObject

Returns the value of attribute section

Returns:

  • (Object)

    the current value of section



216
217
218
# File 'lib/rubycc/objfile/elf_reader.rb', line 216

def section
  @section
end

#targetObject

Returns the value of attribute target

Returns:

  • (Object)

    the current value of target



216
217
218
# File 'lib/rubycc/objfile/elf_reader.rb', line 216

def target
  @target
end