]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: remove global datap, moved to *Link
authorJeremy Faller <jeremy@golang.org>
Mon, 9 Mar 2020 15:08:04 +0000 (11:08 -0400)
committerJeremy Faller <jeremy@golang.org>
Tue, 24 Mar 2020 16:01:15 +0000 (16:01 +0000)
commitb328ab1d1e245fbf9273b6d6a89871fd9dbf036a
tree11640236f8319aaf4557f41e4a5ee1f5af50100b
parent4d5fdd74ab0e093524364f0955ebe99b6210d4f9
[dev.link] cmd/link: remove global datap, moved to *Link

This change moves datap from global space into the link context. Rather
than having it exist in context, we could have it returned from dodata,
and pass it as a parameter, but it is used in awkward places in the
Arch functions. Easiest for now is just keeping it in the context, until
we more formally move it to slices of loader.Sym.

This is a largely non-functional change.

Change-Id: Ica93bd857c39913ad470a61c63bc8d21704d6308
Reviewed-on: https://go-review.googlesource.com/c/go/+/222664
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/elf.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/link.go
src/cmd/link/internal/ld/macho.go
src/cmd/link/internal/ld/pe.go
src/cmd/link/internal/ld/xcoff.go