Source file src/runtime/cgo/library_android.go
1 // Copyright 2026 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 goexperiment.cgobindings && !msan && !tsan && android && (amd64 || arm64) 6 7 package cgo 8 9 // dlopen flags from bionic's <dlfcn.h> for LP64. The runtime/cgo 10 // initialization code on Android already imports dlopen, dlsym, and 11 // dlerror (see cgo_android.go). 12 const ( 13 _RTLD_NOW = 0x2 14 _RTLD_LOCAL = 0x0 15 16 dlopenFlags = _RTLD_NOW | _RTLD_LOCAL 17 ) 18