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: unknown relocation type 284 on netbsd-arm64 #42660

Closed
bsiegert opened this issue Nov 17, 2020 · 3 comments
Closed

cmd/link: unknown relocation type 284 on netbsd-arm64 #42660

bsiegert opened this issue Nov 17, 2020 · 3 comments

Comments

@bsiegert
Copy link
Contributor

In the cases where none of the other current sources of flakiness prevent finishing the build, the test run on the netbsd-arm64-bsiegert builder finishes with this error:

##### ../misc/cgo/test
PASS
ok  	misc/cgo/test	41.606s
# misc/cgo/test.test
/var/gobuilder/buildlet/tmp/go-build335358639/b057/_pkg_.a(_x001.o): unknown relocation type 284; compiled without -fpic?
FAIL	misc/cgo/test [build failed]
2020/11/13 17:12:45 Failed: exit status 2
go tool dist: FAILED

https://build.golang.org/log/bead76b2d0066e4561eea39a0d55057e96cd8813
https://build.golang.org/log/3c34916162f58056f80512f3486dc9f99fb65883
https://build.golang.org/log/31691975f27101b3386bbfe816fcc99a3d0c2edd

The earliest instance of this is after https://go-review.googlesource.com/c/go/+/269337 was submitted, hence /cc @aclements @ianlancetaylor.

@cherrymui
Copy link
Member

cherrymui commented Nov 17, 2020

284 is R_AARCH64_LDST16_ABS_LO12_NC. The linker supports R_AARCH64_LDST{8,32,64,128}_ABS_LO12_NC. Maybe it should support R_AARCH64_LDST16_ABS_LO12_NC as well.

cc @erifan

@cherrymui cherrymui changed the title cgo: unknown relocation type 284 on netbsd-arm64 cmd/link: unknown relocation type 284 on netbsd-arm64 Nov 17, 2020
@erifan
Copy link

erifan commented Nov 18, 2020

Ok, I'll take a look.

@gopherbot
Copy link

Change https://golang.org/cl/271017 mentions this issue: cmd/link: add relocation type R_AARCH64_LDST16_ABS_LO12_NC for arm64

@golang golang locked and limited conversation to collaborators Nov 25, 2021
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