]> Cypherpunks.ru repositories - gostls13.git/commit
[release-branch.go1.20] cmd/link: split text sections for arm 32-bit
authorThan McIntosh <thanm@google.com>
Fri, 29 Sep 2023 18:19:17 +0000 (14:19 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 12 Oct 2023 22:37:08 +0000 (22:37 +0000)
commitd48639094b3a2275092fff43cd5deb1694f7e9e0
tree7b29c3ee230ff259e16ac68a163785bd92ac22bf
parentc8fdffb790f96480cf678b9dcde657ee462b23fa
[release-branch.go1.20] cmd/link: split text sections for arm 32-bit

This CL is a roll-forward (tweaked slightly) of CL 467715, which
turned on text section splitting for GOARCH=arm. The intent is to
avoid recurrent problems with external linking where there is a
disagreement between the Go linker and the external linker over
whether a given branch will reach. In the past our approach has been
to tweak the reachability calculations slightly to try to work around
potential linker problems, but this hasn't proven to be very robust;
section splitting seems to offer a better long term fix.

Updates #58425.
Fixes #63316.

Change-Id: I7372d41abce84097906a3d0805b6b9c486f345d6
Reviewed-on: https://go-review.googlesource.com/c/go/+/531795
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
(cherry picked from commit 1e690409206ff97330b5a91517d453fc5129bab2)
Reviewed-on: https://go-review.googlesource.com/c/go/+/532097
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/ld_test.go