Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: Windows -buildmode=pie fails to execute program that has CGo bindings #41329
It is mentioned in #35192 that people might be interested in weird bugs that pop up using
What version of Go are you using (
@schollz thank you for submitting the issue. Unfortunately I don't have time to debug your issue. It could be C code you use, or gcc flags you use, or could be old / buggy gcc.
-buildmode=pie passes these flags to gcc
Maybe you can work out why it crashes for you.
It is find to use -buildmode=exe to build your executable, if you don't care for ASLR.