go/src/cmd/link
Cherry Mui 1d9d99b7ce 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>
2022-06-16 16:27:17 +00:00
..
internal cmd/link: consider alignment in carrier symbol size calculation 2022-06-16 16:27:17 +00:00
testdata
cgo_test.go
doc.go all: gofmt main repo 2022-04-11 16:34:30 +00:00
dwarf_test.go cmd: move internal/str back to cmd/go 2021-10-27 16:39:27 +00:00
elf_test.go cmd/link: zero elf addr for debug sections 2022-03-30 01:13:21 +00:00
link_test.go cmd/link: support linker for linux/loong64 2022-05-17 17:54:33 +00:00
linkbig_test.go cmd/link: fix TestLargeText 2022-06-03 00:13:09 +00:00
main.go cmd/link: support linker for linux/loong64 2022-05-17 17:54:33 +00:00