]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/link: don't cast end address to int32
authorCherry Mui <cherryyz@google.com>
Wed, 12 May 2021 02:40:02 +0000 (22:40 -0400)
committerCherry Mui <cherryyz@google.com>
Wed, 12 May 2021 15:04:42 +0000 (15:04 +0000)
commitaf0f8c149e8a4b237910fc7b41739bedc546473c
tree0696cdc0e3eea64288f09d91e14065703c5b2b5d
parent485474d204297ce9ff2b7f6c2a2b0e048c61fb8e
cmd/link: don't cast end address to int32

When linking a very large binary, the section address may not fit
in int32. Don't truncate it.

Change-Id: Ibcc8d74bf5662611949e547ce44ca8b973de383f
Reviewed-on: https://go-review.googlesource.com/c/go/+/319289
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/link/internal/ld/elf.go
src/cmd/link/internal/ld/macho.go