- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for cgo_export_dynamic (0.17 sec)
-
src/cmd/link/internal/ld/go.go
s := l.LookupOrCreateSym(local, 0) su := l.MakeSymbolUpdater(s) su.SetType(sym.SHOSTOBJ) su.SetSize(0) hostObjSyms[s] = struct{}{} continue case "cgo_export_static", "cgo_export_dynamic": if len(f) < 2 || len(f) > 4 { break } local := f[1] remote := local if len(f) > 2 { remote = f[2] } // The compiler adds a fourth argument giving
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 22 16:48:30 UTC 2023 - 11.2K bytes - Viewed (0) -
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/compile/internal/noder/noder.go
p.error(syntax.Error{Pos: pos, Msg: fmt.Sprintf("invalid library name %q in cgo_import_dynamic directive", lib)}) } p.pragcgo(pos, text) pragma.Flag |= pragmaFlag("go:cgo_import_dynamic") break } fallthrough case strings.HasPrefix(text, "go:cgo_"): // For security, we disallow //go:cgo_* directives other // than cgo_import_dynamic outside cgo-generated files.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 11 20:40:57 UTC 2023 - 12.5K bytes - Viewed (0) -
src/cmd/link/internal/loader/symbolbuilder.go
func (sb *SymbolBuilder) External() bool { return sb.l.AttrExternal(sb.symIdx) } func (sb *SymbolBuilder) Extname() string { return sb.l.SymExtname(sb.symIdx) } func (sb *SymbolBuilder) CgoExportDynamic() bool { return sb.l.AttrCgoExportDynamic(sb.symIdx) } func (sb *SymbolBuilder) Dynimplib() string { return sb.l.SymDynimplib(sb.symIdx) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 15:25:19 UTC 2023 - 13.9K 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)