Source file test/fixedbugs/issue58826.go
1 // compile -dynlink 2 3 //go:build 386 || amd64 || arm || arm64 || ppc64le || s390x 4 // (platforms that support -dynlink flag) 5 6 // Copyright 2023 The Go Authors. All rights reserved. 7 // Use of this source code is governed by a BSD-style 8 // license that can be found in the LICENSE file. 9 10 // Issue 58826: assembler cannot handle global access with large 11 // offset in -dynlink mode on ARM64. 12 13 package p 14 15 var x [2197]uint8 16 17 func F() { 18 for _, i := range x { 19 G(i) 20 } 21 } 22 23 func G(uint8) 24