]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: begin splitting up dodata()
authorThan McIntosh <thanm@google.com>
Tue, 14 Apr 2020 19:14:54 +0000 (15:14 -0400)
committerThan McIntosh <thanm@google.com>
Wed, 15 Apr 2020 11:13:33 +0000 (11:13 +0000)
commita6a8974a5a569d9dce2ad93672477bf9598f7682
tree24da391b56adaa143263fc47cac8387db4e15b5c
parenteed3ef581b136adcfb0ca36e1238960de599f3e5
[dev.link] cmd/link: begin splitting up dodata()

Begin refactoring dodata to try to convert it from a single giant blob
to something more hierarchical, with descriptive function names for
sub-parts.

Add a state object to hold things like "data" and "dataMaxAlign"
arrays that are used throughout dodata. Extract out the code that
allocates data symbols to sections into a separate method (this
method is still too big, probably needs to be refactored again).

No change in functionality.

Change-Id: I7b52dc2aff0356e7d4b5d6f629d907fd37d3082c
Reviewed-on: https://go-review.googlesource.com/c/go/+/228259
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/link/internal/ld/data.go