aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/debuglog.go
diff options
context:
space:
mode:
authorCherry Mui <cherryyz@google.com>2025-11-17 17:27:21 -0500
committerCherry Mui <cherryyz@google.com>2025-11-18 09:02:16 -0800
commit8806d53c106ba9d797a4383b2a49418c509a42c2 (patch)
tree8a933765198ac8d5104cede8308212d11ea5175a /src/runtime/debuglog.go
parentc93766007dbb9c975d2f18b7c741f4804ce911c0 (diff)
downloadgo-8806d53c106ba9d797a4383b2a49418c509a42c2.tar.xz
cmd/link: align sections, not symbols after DWARF compress
After DWARF compression, we recompute the symbol and section addresses. On Windows, we need to align the sections to PEFILEALIGN. But the code actually apply the alignment to every symbol. This works mostly fine as after compression a section usually contains a single symbol (the compressed data). But if the compression is not beneficial, it leaves with the original set of symbols, which could be more than one. Applying alignment to every symbol causing the section size too big, no longer matching the size we computed before compression. Fixes #76022. Change-Id: I2246045955405997c77e54001bbb83f9ccd1ee7c Reviewed-on: https://go-review.googlesource.com/c/go/+/721340 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/runtime/debuglog.go')
0 files changed, 0 insertions, 0 deletions