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

Comments

Projects
None yet
4 participants
@cherrymui
Copy link
Contributor

commented Aug 22, 2016

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

This comment has been minimized.

Copy link
Contributor

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

This comment has been minimized.

Copy link

commented Aug 22, 2016

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

@quentinmit quentinmit added this to the Go1.8 milestone Aug 22, 2016

@cherrymui

This comment has been minimized.

Copy link
Contributor Author

commented Aug 23, 2016

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!

@cherrymui cherrymui closed this Aug 23, 2016

@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.
You can’t perform that action at this time.