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

cmd/link: macho binaries missing LC_VERSION_MIN_MACOSX #12941

Closed
ribrdb opened this issue Oct 14, 2015 · 2 comments
Closed

cmd/link: macho binaries missing LC_VERSION_MIN_MACOSX #12941

ribrdb opened this issue Oct 14, 2015 · 2 comments
Milestone

Comments

@ribrdb
Copy link
Contributor

ribrdb commented Oct 14, 2015

The go linker does not specify a min OS X version.
When this is missing lldb cannot identify the os of the binary.
In external link mode the system linker adds LC_VERSION_MIN_MACOSX, set to the current OS X version.
This means only programs compiled in external link mode can be debugged with lldb.

See http://lists.llvm.org/pipermail/lldb-dev/2015-October/008555.html

@ribrdb
Copy link
Contributor Author

ribrdb commented Oct 14, 2015

I'm using go version go1.5.1 darwin/amd64

@ianlancetaylor ianlancetaylor added this to the Go1.6 milestone Oct 14, 2015
@adg adg changed the title macho binaries missing LC_VERSION_MIN_MACOSX cmd/link: macho binaries missing LC_VERSION_MIN_MACOSX Oct 15, 2015
@gopherbot
Copy link

CL https://golang.org/cl/18588 mentions this issue.

@golang golang locked and limited conversation to collaborators Jan 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants