]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: refactor section creation in dodata
authorThan McIntosh <thanm@google.com>
Fri, 17 Apr 2020 21:23:02 +0000 (17:23 -0400)
committerThan McIntosh <thanm@google.com>
Tue, 21 Apr 2020 16:26:42 +0000 (16:26 +0000)
commit87b43088cd736c32f56b864b8185a311d31b1852
treec81da9b4d2b9aa3456245892de9036f2ec1993dd
parent47cac82e36d08198afac646c3f46d24255cf9d61
[dev.link] cmd/link: refactor section creation in dodata

Additional cleanups and refactorings in the allocateSections portion
of dodata. Introduce some new helper routines to be used for common
cases in creating sections and assigning symbols, with a goal of
reducing duplicated code blocks and having more readable code.

No change in functionality.

Change-Id: I1b020b3ee993674329b2bebfd7c35995e3a2c043
Reviewed-on: https://go-review.googlesource.com/c/go/+/228883
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
src/cmd/link/internal/ld/data.go