]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/link: reject too-large relocation addend on darwin/arm64
authorCherry Zhang <cherryyz@google.com>
Wed, 9 Dec 2020 17:14:00 +0000 (12:14 -0500)
committerCherry Zhang <cherryyz@google.com>
Thu, 10 Dec 2020 15:37:33 +0000 (15:37 +0000)
commitb110733327a66870da9c5f482d8fd3275dae55f3
tree04d140f95bbc1b6c8c5b83cd748e935e2b1ba339
parent0aba8f24cb1f38beb01491bc91697617ea0ce55b
cmd/link: reject too-large relocation addend on darwin/arm64

Mach-O relocation addend is signed 24-bit. If the addend
overflows, it is better to fail the build than emitting an
incorrect binary. (I'm still working on a fix.)

Updates #42738.

Change-Id: I647f0cd4f6b84d9ac75ef3bf36673bea01dfc211
Reviewed-on: https://go-review.googlesource.com/c/go/+/276694
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/arm64/asm.go