]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj: refactor code to separate content-addressable symbols by section
authorJosh Bleecher Snyder <josharian@gmail.com>
Mon, 27 Sep 2021 20:39:43 +0000 (13:39 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 28 Sep 2021 03:21:58 +0000 (03:21 +0000)
commit534dfb2aeb0721eeedb847e0d60785da8ac13315
treee06642aa89ca821b620719d8c271729d11a07557
parent850a4ffb6346dd53f6f5624c13410d99e6509cae
cmd/internal/obj: refactor code to separate content-addressable symbols by section

The goal of this change is to improve the documentation
and make it easier to keep Link.NumberSyms and writer.contentHash aligned.
No functional changes.

A subsequent change will add conditions to contentHashSection.

Change-Id: I0a274f6974459d34d5a8553081f33ea4cd87f248
Reviewed-on: https://go-review.googlesource.com/c/go/+/352669
Trust: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/internal/obj/objfile.go
src/cmd/internal/obj/sym.go
src/cmd/link/internal/ld/symtab.go