go tool link -n -v -importcfg=import.cfg -o main.a -symabis main.abi -dwarfpath=.:$GOPATH/src/runtime/debug/dwarf/ main.o
go tool link -L=main=.:$GOPATH/pkg/linux_amd64 -extldflags '-Wl,-wrap=memcpy' -o main -buildmode=exe main.aThis command links the object file generated in the previous step using the ld tool. It specifies linker flags such as library search paths and external flags to wrap the memcpy function. The package library for go cmd.link.internal.ld Link Diag is the Go standard library.