]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: record external symbol alignment
authorThan McIntosh <thanm@google.com>
Wed, 11 Dec 2019 19:24:19 +0000 (14:24 -0500)
committerThan McIntosh <thanm@google.com>
Fri, 20 Dec 2019 21:03:35 +0000 (21:03 +0000)
commit24f9b9c8f3042f128d59c27d461cc34ddc3ab5d3
tree4c77bc1331aec27da5da8038f2885d52b02ee348
parent3c3ba97ba5e0f0a9b8455d53e2790851c6ba0c7b
[dev.link] cmd/link: record external symbol alignment

Add a mechanism for recording symbol alignment for external symbols
under the new loader scheme. Alignments is stored in a side table,
since most symbols don't wind up needing an alignment other than zero.

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