github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/cmd/link/internal/ld/errors.go (about) 1 // Copyright 2020 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 ld 6 7 import ( 8 "github.com/shogo82148/std/cmd/link/internal/loader" 9 "github.com/shogo82148/std/sync" 10 ) 11 12 // ErrorReporter is used to make error reporting thread safe. 13 type ErrorReporter struct { 14 loader.ErrorReporter 15 unresSyms map[unresolvedSymKey]bool 16 unresMutex sync.Mutex 17 SymName symNameFn 18 }