- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for cgo_export_dynamic (1.15 sec)
-
src/cmd/compile/internal/ssagen/abi.go
// the unmangled name? cgoExports := make(map[string][]*[]string) for i, prag := range typecheck.Target.CgoPragmas { switch prag[0] { case "cgo_export_static", "cgo_export_dynamic": symName := s.canonicalize(prag[1]) pprag := &typecheck.Target.CgoPragmas[i] cgoExports[symName] = append(cgoExports[symName], pprag) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 13.8K bytes - Viewed (0) -
src/cmd/link/internal/loader/loader.go
// specially marked via the "cgo_export_dynamic" compiler directive // written by cgo (in response to //export directives in the source). func (l *Loader) AttrCgoExportDynamic(i Sym) bool { _, ok := l.attrCgoExportDynamic[i] return ok } // SetAttrCgoExportDynamic sets the "cgo_export_dynamic" for a symbol // (see AttrCgoExportDynamic).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 20:26:10 UTC 2024 - 81.5K bytes - Viewed (0) -
src/cmd/cgo/doc.go
Examples: //go:cgo_import_dynamic puts //go:cgo_import_dynamic puts puts#GLIBC_2.2.5 //go:cgo_import_dynamic puts puts#GLIBC_2.2.5 "libc.so.6" A side effect of the cgo_import_dynamic directive with a library is to make the final binary depend on that dynamic library. To get the dependency without importing any specific symbols, use _ for local and remote. Example:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 17:12:16 UTC 2024 - 42.2K bytes - Viewed (0) -
src/cmd/link/internal/ld/lib.go
// Turns out we won't be needing them. for symIdx := range hostObjSyms { if l.SymType(symIdx) == sym.SHOSTOBJ { // If a symbol was marked both // cgo_import_static and cgo_import_dynamic, // then we want to make it cgo_import_dynamic // now. su := l.MakeSymbolUpdater(symIdx) if l.SymExtname(symIdx) != "" && l.SymDynimplib(symIdx) != "" && !(l.AttrCgoExportStatic(symIdx) || l.AttrCgoExportDynamic(symIdx)) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 18:45:27 UTC 2024 - 88.6K bytes - Viewed (0)