Skip to content

Commit 50ffaf2

Browse files
committed
cmd/link: add ARM to the architectures to split text sections for
Fixes golang#58428 Change-Id: I2e5c277cf609b98081f38da8de4716fd0cd8efdd
1 parent fb79da2 commit 50ffaf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/link/internal/ld/data.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2533,7 +2533,7 @@ func assignAddress(ctxt *Link, sect *sym.Section, n int, s loader.Sym, va uint64
25332533
//
25342534
// The same applies to Darwin/ARM64, with 2^27 byte threshold.
25352535
func splitTextSections(ctxt *Link) bool {
2536-
return (ctxt.IsPPC64() || (ctxt.IsARM64() && ctxt.IsDarwin())) && ctxt.IsExternal()
2536+
return (ctxt.IsPPC64() || ctxt.IsARM() || (ctxt.IsARM64() && ctxt.IsDarwin())) && ctxt.IsExternal()
25372537
}
25382538

25392539
// On Wasm, we reserve 4096 bytes for zero page, then 8192 bytes for wasm_exec.js

0 commit comments

Comments
 (0)