github.com/eh-steve/goloader@v0.0.0-20240111193454-90ff3cfdae39/libc/lookup_libc_stub.go (about)

     1  //go:build !cgo && !darwin
     2  // +build !cgo,!darwin
     3  
     4  package libc
     5  
     6  import "fmt"
     7  
     8  func LookupDynamicSymbol(symName string) (uintptr, error) {
     9  	return 0, fmt.Errorf("failed to lookup symbol %s (stub unable to use libdl)", symName)
    10  }