Is it possible to link object files generated from the Go toolchain using gcc/clang linker?

665 Views Asked by At

executable files built by the Go compiler are not compatible on target environment as the loader expects program sections to be in specific order.

As a result, I'm trying to compile the Go source using go tool compile to generate .o files, which I want to link using the gcc/clang linker option instead of go tool link

Does the object files generated from go build are compatible to be linked with gcc/clang toolchain ?

0

There are 0 best solutions below