class RiSC16::Object::Section
- RiSC16::Object::Section
- Reference
- Object
Overview
A section is a continuous block of code with it's symbols definitions and references.
The block of code is not usable as is, it require to be linked to solve the references. All the address are relative to the start of the block of code It has an optional offset within a namespace where it expect to be loaded. When ready for merging, a section should have an absolute, expected loading address (relative to address 0). This allows the linker to quickly adjust the symbols addresses given the real loading address.
Defined in:
assembler/object.crConstructors
Instance Method Summary
- #absolute : Int32 | Nil
- #absolute=(absolute : Int32 | Nil)
- #definitions : Hash(String, Symbol)
- #definitions=(definitions : Hash(String, Symbol))
- #name : String
- #name=(name : String)
- #offset : Int32 | Nil
- #offset=(offset : Int32 | Nil)
- #options : Options
- #options=(options : Options)
- #references : Hash(String, Array(Reference))
- #references=(references : Hash(String, Array(Reference)))
- #text : Slice(UInt16)
- #text=(text : Slice(UInt16))
Constructor Detail
def self.new(name : String, offset : Int32 | Nil = nil, options : RiSC16::Object::Section::Options = Options::None)
#