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: why golang linker only save parts of relocations into go.o in external linking mode? #49333

hailingluo opened this issue Nov 4, 2021 · 1 comment


Copy link

hailingluo commented Nov 4, 2021

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

$ go version
go version go1.16.5 linux/arm64

What did you expect to see?

PATH: go\src\cmd\link\internal\arm64\asm.go
func elfreloc1(ctxt *ld.Link, out *ld.OutBuf, ldr *loader.Loader, s loader.Sym, r loader.ExtReloc, ri int, sectoff int64) bool {

In this function, it only emits some types of relocations into go.o as the following description. why?
There still exist some other types of relocations.

Copy link

seankhliao commented Nov 4, 2021

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.

For questions please refer to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

No branches or pull requests

2 participants