]> Cypherpunks repositories - gostls13.git/commit
cmd/link: consider alignment in carrier symbol size calculation
authorCherry Mui <cherryyz@google.com>
Thu, 16 Jun 2022 15:35:40 +0000 (11:35 -0400)
committerCherry Mui <cherryyz@google.com>
Thu, 16 Jun 2022 16:27:17 +0000 (16:27 +0000)
commit1d9d99b7ce279f2af928f79cbc5906d99f29bb67
tree7d5591a9ce5e232e0d717d9a82765d1f0740e975
parentbcce8ef4982cf29715895277ad84aaf16991e06b
cmd/link: consider alignment in carrier symbol size calculation

Currently, when we calculate the size of a carrier symbol, we use
the previous symbol's end address as the start. But the symbol
actually starts after applying the alignment. Do this in the
size calculation.

Should fix AIX build.

Updates #53372.

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