]> Cypherpunks repositories - gostls13.git/commit
cmd/link: update plt size appropriately on ppc64
authorLynn Boger <laboger@linux.vnet.ibm.com>
Tue, 13 Oct 2020 13:15:52 +0000 (09:15 -0400)
committerLynn Boger <laboger@linux.vnet.ibm.com>
Tue, 13 Oct 2020 16:26:21 +0000 (16:26 +0000)
commita15ec3895b99cd6b49576a6c1a739b46f8afeaf4
tree0e3e0527e6eea73bd674823381fd1f816ce9f84b
parent575ea5a87a86de3107b2401e10ff4e50e5a133a0
cmd/link: update plt size appropriately on ppc64

When attempting to enable internal linking with cgo on ppc64
it was discovered that the plt size was not being updated
after adding entries to it, which resulted in this error:

  .plt: initialize bounds (16 < 24)

This changes fixes that problem.

Updates #21961

Change-Id: Ie17539c329f5a4802e5defd93852dcdde19ded8c
Reviewed-on: https://go-review.googlesource.com/c/go/+/261837
Trust: Lynn Boger <laboger@linux.vnet.ibm.com>
Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/link/internal/ppc64/asm.go