]> Cypherpunks repositories - gostls13.git/commit
cmd/link: check DWARF section sizes separately
authorCherry Mui <cherryyz@google.com>
Thu, 11 May 2023 18:31:31 +0000 (14:31 -0400)
committerCherry Mui <cherryyz@google.com>
Thu, 11 May 2023 20:14:54 +0000 (20:14 +0000)
commitc2becd70c5dad379def219e60452072ab6e72617
treed5b5052803d68bd309d1441efa1c92fd1fde36a4
parent3e9876cd3a5a83be9bb0f5cbc600aadf9b599558
cmd/link: check DWARF section sizes separately

Currently, we check the total size of all data+DWARF sections
doesn't exceed 2 GB, which doesn't make sense. We should check
data and DWARF separately. And for DWARF, check each section
separately, as we use section offset for references.

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