Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for cgoexp (0.42 sec)

  1. src/cmd/link/internal/ld/elf.go

    	st := ldr.SymType(s)
    	cgoeStatic := ldr.AttrCgoExportStatic(s)
    	cgoeDynamic := ldr.AttrCgoExportDynamic(s)
    	cgoexp := (cgoeStatic || cgoeDynamic)
    
    	d.AddUint32(target.Arch, uint32(dstru.Addstring(name)))
    
    	if elf64 {
    
    		/* type */
    		var t uint8
    
    		if cgoexp && st == sym.STEXT {
    			t = elf.ST_INFO(elf.STB_GLOBAL, elf.STT_FUNC)
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 13:29:54 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  2. src/cmd/cgo/out.go

    		fmt.Fprintf(fgo2, "//go:linkname _cgoexp%s_%s _cgoexp%s_%s\n", cPrefix, exp.ExpName, cPrefix, exp.ExpName)
    		// In external linking mode, the Go linker sees the Go
    		// wrapper, but not the C wrapper. For this case,
    		// export the Go wrapper so the host linker can
    		// resolve the reference from the C wrapper to the Go
    		// wrapper.
    		fmt.Fprintf(fgo2, "//go:cgo_export_static _cgoexp%s_%s\n", cPrefix, exp.ExpName)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  3. src/cmd/internal/testdir/testdir_test.go

    				}
    				tim *= timeoutScale
    			}
    		case "-goexperiment": // set GOEXPERIMENT environment
    			args = args[1:]
    			if goexp != "" {
    				goexp += ","
    			}
    			goexp += args[0]
    			runenv = append(runenv, "GOEXPERIMENT="+goexp)
    
    		case "-godebug": // set GODEBUG environment
    			args = args[1:]
    			if godebug != "" {
    				godebug += ","
    			}
    			godebug += args[0]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/xcoff.go

    	ldr := ctxt.loader
    	for s, nsym := loader.Sym(1), loader.Sym(ldr.NSym()); s < nsym; s++ {
    		if !ldr.AttrCgoExport(s) {
    			continue
    		}
    		extname := ldr.SymExtname(s)
    		if !strings.HasPrefix(extname, "._cgoexp_") {
    			continue
    		}
    		if ldr.IsFileLocal(s) {
    			continue // Only export non-static symbols
    		}
    
    		// Retrieve the name of the initial symbol
    		// exported by cgo.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 19:58:23 UTC 2023
    - 51.8K bytes
    - Viewed (0)
Back to top