Skip to content
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

Open
jhiemstrawisc opened this issue Apr 10, 2024 · 2 comments
Open

Static linking on arm but dynamic on x86 #232

jhiemstrawisc opened this issue Apr 10, 2024 · 2 comments

Comments

@jhiemstrawisc
Copy link

jhiemstrawisc commented Apr 10, 2024

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 with CGO_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.

@TotallyGamerJet
Copy link
Collaborator

TotallyGamerJet commented Apr 10, 2024

Which OS, go version, purego version are you using?

Amd64, and arm64 should be dynamically linked. How are you determining they are static?

@TotallyGamerJet
Copy link
Collaborator

@jhiemstrawisc is this still an issue? If not, I'd like to close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants