loadxcoff

Imports

Imports #

"cmd/internal/bio"
"cmd/internal/objabi"
"cmd/internal/sys"
"cmd/link/internal/loader"
"cmd/link/internal/sym"
"errors"
"fmt"
"internal/xcoff"

Type Aliases

xcoffBiobuf type #

xcoffBiobuf makes bio.Reader look like io.ReaderAt.

type xcoffBiobuf bio.Reader

Structs

ldSection struct #

ldSection is an XCOFF section with its symbols.

type ldSection struct {
xcoff.Section
sym loader.Sym
}

Functions

Load function #

loads the Xcoff file pn from f. Symbols are written into loader, and a slice of the text symbols is returned.

func Load(l *loader.Loader, arch *sys.Arch, localSymVersion int, input *bio.Reader, pkg string, length int64, pn string) (textp []loader.Sym, err error)

ReadAt method #

func (f *xcoffBiobuf) ReadAt(p []byte, off int64) (int, error)

getSymbolType function #

Convert symbol xcoff type to sym.SymKind Returns nil if this shouldn't be added into loader (like .file or .dw symbols )

func getSymbolType(f *xcoff.File, s *xcoff.Symbol) (stype sym.SymKind, err string)

Generated with Arrow