go/src/cmd/link
Cherry Mui f39997b2be cmd/link: split large text sections on Darwin/ARM64 when external linking
The Darwin linker does not like text sections that are larger
than the jump limit (even if we already inserted trampolines).
Split the text section to multiple smaller sections.

Now external linking very large binaries works on Darwin/ARM64.

Updates #40492.

Change-Id: I584f1ec673170c5e4d2dc1e00c701964d6f14333
Reviewed-on: https://go-review.googlesource.com/c/go/+/316050
Trust: Cherry Mui <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
2021-05-06 20:23:33 +00:00
..
internal cmd/link: split large text sections on Darwin/ARM64 when external linking 2021-05-06 20:23:33 +00:00
testdata cmd/link: recognize ARM64 PE files and relocations 2021-02-26 18:15:09 +00:00
doc.go cmd/link: move comma outside quotes 2020-08-15 08:24:23 +00:00
dwarf_test.go cmd/link: use testing.T.TempDir in tests 2021-03-08 20:03:01 +00:00
elf_test.go cmd/link: use testing.T.TempDir in tests 2021-03-08 20:03:01 +00:00
link_test.go cmd/link: test trampolines with cgo 2021-04-29 16:29:52 +00:00
linkbig_test.go internal/buildcfg: move build configuration out of cmd/internal/objabi 2021-04-16 19:20:53 +00:00
main.go internal/buildcfg: move build configuration out of cmd/internal/objabi 2021-04-16 19:20:53 +00:00