Say that I have an object file called test.o. It contains a reference to a function called say. Also say that I have some go code:
func main() {
say()
}
Could I pass in the object file as an argument when compiling my Golang source (go build --include=test.o
), or reference it in the Go source?
So the question is: how can I access the function stored in test.o from within my Go code?