summaryrefslogtreecommitdiff
path: root/src/cmd/internal/diff/diff.go
diff options
context:
space:
mode:
authorLynn Boger <laboger@linux.vnet.ibm.com>2019-10-28 09:29:40 -0400
committerLynn Boger <laboger@linux.vnet.ibm.com>2019-10-28 15:06:13 +0000
commit0ae9389609f23dc905c58fc2ad7bcc16b770f337 (patch)
treee242354a9a8024643b71d09004d6402eed8e1b37 /src/cmd/internal/diff/diff.go
parentadef06c7a53c16cdf8dfccbd8476417ec9b9ff9a (diff)
downloadgo-git-0ae9389609f23dc905c58fc2ad7bcc16b770f337.tar.gz
runtime: fix textOff for multiple text sections
If a compilation has multiple text sections, code in textOff must compare the offset argument against the range for each text section to determine which one it is in. The comparison looks like this: if uintptr(off) >= sectaddr && uintptr(off) <= sectaddr+sectlen If the off value being compared is equal to sectaddr+sectlen then it is not within the range of the text section but after it. The comparison should be just '<'. Updates #35207 Change-Id: I114633fd734563d38f4e842dd884c6c239f73c95 Reviewed-on: https://go-review.googlesource.com/c/go/+/203817 Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/cmd/internal/diff/diff.go')
0 files changed, 0 insertions, 0 deletions