]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.21] 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:36:36 +0000 (22:36 +0000)
commit236c07c0496786586f72e2a96ed15003f71ff975
treea30eea17fabeee8b30d36bfe7c782fb3df7300b3
parent9465990e0e6e773a855dfffadc74be74f14472c4
[release-branch.go1.21] 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 #63317.

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/+/532096
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/ld_test.go