linker

package
v0.0.0-...-cf91f57 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Link(inputFiles []io.Reader, outputFile io.Writer) error

Types

type AssembledSection

type AssembledSection struct {
	Name    string
	Size    int
	RawData []arch.Instruction
	// contains filtered or unexported fields
}

type InputObjectFile

type InputObjectFile struct {
	Sections        []*AssembledSection
	SymbolTable     []*objfile.SymbolTableEntry
	RelocationTable []*objfile.RelocationTableEntry
}

func (*InputObjectFile) GetSectionOffsetAbsoluteAddress

func (i *InputObjectFile) GetSectionOffsetAbsoluteAddress(sectionName string, sectionOffset int) (int, error)

func (*InputObjectFile) GetSymbolAbsoluteAddress

func (i *InputObjectFile) GetSymbolAbsoluteAddress(symbolName string) (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL