github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/cmd/link/internal/loadxcoff/ldxcoff.go (about) 1 // Copyright 2018 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // Package loadxcoff implements a XCOFF file reader. 6 package loadxcoff 7 8 import ( 9 "github.com/shogo82148/std/cmd/internal/bio" 10 "github.com/shogo82148/std/cmd/internal/sys" 11 "github.com/shogo82148/std/cmd/link/internal/loader" 12 ) 13 14 // loads the Xcoff file pn from f. 15 // Symbols are written into loader, and a slice of the text symbols is returned. 16 func Load(l *loader.Loader, arch *sys.Arch, localSymVersion int, input *bio.Reader, pkg string, length int64, pn string) (textp []loader.Sym, err error)