]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: convert text address assignment to new style
authorCherry Zhang <cherryyz@google.com>
Mon, 6 Apr 2020 19:58:21 +0000 (15:58 -0400)
committerCherry Zhang <cherryyz@google.com>
Wed, 8 Apr 2020 15:32:39 +0000 (15:32 +0000)
commit850c602ed62fb36430b872f31ac86142d8eaa5f3
tree545ef2ce9635dc20b1f00360d6a529c5600ccf76
parent5072c166a11f053a63c501c527e267a20b5176e1
[dev.link] cmd/link: convert text address assignment to new style

Implement text address assignment and trampoline generation using
the loader.

Note: the trampoline insertion part doesn't actually work. It
also needs to propagate Aux symbols for external symbols in
LoadFull.  But it won't be needed after converting pclntab
generation, so I'll leave it out for now. This could break
linking large binaries on PPC64 and ARM.

Change-Id: Ie46a35b25d7c027983dd877207cfa8f67c32530b
Reviewed-on: https://go-review.googlesource.com/c/go/+/227482
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/arm/asm.go
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/link.go
src/cmd/link/internal/ld/main.go
src/cmd/link/internal/loader/loader.go
src/cmd/link/internal/loader/symbolbuilder.go
src/cmd/link/internal/ppc64/asm.go
src/cmd/link/internal/wasm/asm.go