Source file src/runtime/cgo/openbsd.go
1 // Copyright 2010 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build openbsd 6 7 package cgo 8 9 import _ "unsafe" // for go:linkname 10 11 // Supply __guard_local because we don't link against the standard 12 // OpenBSD crt0.o and the libc dynamic library needs it. 13 14 //go:linkname _guard_local __guard_local 15 16 var _guard_local uintptr 17 18 // This is normally marked as hidden and placed in the 19 // .openbsd.randomdata section. 20 //go:cgo_export_dynamic __guard_local __guard_local 21