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: mips64x linking with cgo broken #16838

Closed
cherrymui opened this issue Aug 22, 2016 · 3 comments
Closed

cmd/link: mips64x linking with cgo broken #16838

cherrymui opened this issue Aug 22, 2016 · 3 comments
Milestone

Comments

@cherrymui
Copy link
Member

Seems after commit 0a15d95 external linking with cgo on mips64x is broken.

Failure build example:
https://build.golang.org/log/18b5dee1d5363bf6412b564f5e6d9d767dc0f2ff

/cc @matloob

I can have a look some time later or tomorrow.

@dr2chase
Copy link
Contributor

dr2chase commented Aug 22, 2016

Also broken on PPC64, fixed by changing cmd/link/internal/ppc64/obj.go:

-       ld.Thearch.Linuxdynld = "/lib64/ld64.so.1"
+       ld.Thearch.Linuxdynld = "/lib64/ld64.so.2"

(still testing, but at least I can run 'go')

Credit to Austin for figuring out the likely problem with

readelf -x .interp ../bin/go

(it just trips off the tongue, doesn't it?)

@gopherbot
Copy link

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

@quentinmit quentinmit added this to the Go1.8 milestone Aug 22, 2016
@cherrymui
Copy link
Member Author

Linking on mips64 is fixed by https://go-review.googlesource.com/c/27555/, ppc64 is fixed by https://go-review.googlesource.com/c/27562/. Thanks!

@golang golang locked and limited conversation to collaborators Aug 23, 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

4 participants