-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static linking on arm but dynamic on x86 #232
Comments
Which OS, go version, purego version are you using? Amd64, and arm64 should be dynamically linked. How are you determining they are static? |
@jhiemstrawisc is this still an issue? If not, I'd like to close it. |
Closing as there hasn't been a response and this doesn't appear to actually be an issue. |
I also noticed this issue. Using the ldd command, it can be seen that dynamic libraries are linked in amd64, while this situation does not exist in arm64 |
Can you provide a minimal reproducible code? Both architectures should be dynamically linked. |
I am cross compiling linux/arm64 on linux/amd64, do I don‘t know if it is related to this? |
main.go
go build
result
|
I don't have an amd64 computer but on my arm64 linux it was amd64 that gave a
|
I noticed recently that compiling your
libc
example has different behavior on arm64 than it does on x86 -- on arm, it produces a static binary, but on x86 it's dynamically linked, even withCGO_ENABLED=0
.Is this intended? I initially observed similar behavior after using
purego
in another project, where my x86 go binaries broke because they switched from static to dynamic.The text was updated successfully, but these errors were encountered: