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: darwin/arm linker fails to handle pc-relative relocation to _cgo_yield #19684

Closed
eliasnaur opened this issue Mar 23, 2017 · 2 comments

Comments

@eliasnaur
Copy link
Contributor

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

tip

What operating system and processor architecture are you using (go env)?

darwin/arm

What did you do?

The darwin/arm builder fails with relocation errors:

https://build.golang.org/log/8d0eeee7f56708b0f629533fab76cb27729f4229

What did you expect to see?

No relocation errors

What did you see instead?

runtime.notesleep: pc-relative relocation of external symbol is not supported
runtime.notesleep: unsupported obj reloc R_PCREL/4 to _cgo_yield
runtime.notesleep: pc-relative relocation of external symbol is not supported
runtime.notesleep: unsupported obj reloc R_PCREL/4 to _cgo_yield
runtime.notetsleep_internal: pc-relative relocation of external symbol is not supported
runtime.notetsleep_internal: unsupported obj reloc R_PCREL/4 to _cgo_yield
runtime.notetsleep_internal: pc-relative relocation of external symbol is not supported
runtime.notetsleep_internal: unsupported obj reloc R_PCREL/4 to _cgo_yield
runtime.notetsleep_internal: pc-relative relocation of external symbol is not supported
runtime.notetsleep_internal: unsupported obj reloc R_PCREL/4 to _cgo_yield
runtime.notetsleep_internal: pc-relative relocation of external symbol is not supported
runtime.notetsleep_internal: unsupported obj reloc R_PCREL/4 to _cgo_yield
runtime.findrunnable: pc-relative relocation of external symbol is not supported
runtime.findrunnable: unsupported obj reloc R_PCREL/4 to _cgo_yield
runtime.sysmon: pc-relative relocation of external symbol is not supported
runtime.sysmon: unsupported obj reloc R_PCREL/4 to _cgo_yield

CL 35494 introduced _cgo_yield which hit an unimplemented path in the darwin/arm linker. Darwin/arm64 is fine.

@eliasnaur
Copy link
Contributor Author

@crawshaw do you know enough about the darwin/arm linker to suggest a fix?

@ianlancetaylor ianlancetaylor changed the title darwin/arm linker fails to handle pc-relative relocation to _cgo_yield cmd/link: darwin/arm linker fails to handle pc-relative relocation to _cgo_yield Mar 23, 2017
@gopherbot
Copy link

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

@golang golang locked and limited conversation to collaborators Mar 24, 2018
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

2 participants