]> Cypherpunks.ru repositories - gostls13.git/commit
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)
committerThan McIntosh <thanm@google.com>
Fri, 29 Sep 2023 22:29:16 +0000 (22:29 +0000)
commit1e690409206ff97330b5a91517d453fc5129bab2
tree3ef30726cf75e3a337e5ea794011a7620ab0cdb3
parentfa4f951026f697bc042422d95a0806dcbab7ddd0
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.

Fixes #58425.

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>
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/ld_test.go