Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for loadcgo (4.1 sec)

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

    		}
    		if p1 < 0 {
    			fmt.Fprintf(os.Stderr, "%s: cannot find end of // cgo section in %s\n", os.Args[0], filename)
    			return
    		}
    		p1 += p0
    		loadcgo(ctxt, filename, objabi.PathToPrefix(lib.Pkg), data[p0:p1])
    	}
    }
    
    func loadcgo(ctxt *Link, file string, pkg string, p string) {
    	var directives [][]string
    	if err := json.NewDecoder(strings.NewReader(p)).Decode(&directives); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 16:48:30 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/link.go

    	runtimeCU *sym.CompilationUnit   // One of the runtime CUs, the last one seen.
    
    	loader  *loader.Loader
    	cgodata []cgodata // cgo directives to load, three strings are args for loadcgo
    
    	datap  []loader.Sym
    	dynexp []loader.Sym
    
    	// Elf symtab variables.
    	numelfsym int // starts at 0, 1 is reserved
    
    	// These are symbols that created and written by the linker.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 19 15:59:22 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  3. src/debug/macho/macho.go

    // A LoadCmd is a Mach-O load command.
    type LoadCmd uint32
    
    const (
    	LoadCmdSegment    LoadCmd = 0x1
    	LoadCmdSymtab     LoadCmd = 0x2
    	LoadCmdThread     LoadCmd = 0x4
    	LoadCmdUnixThread LoadCmd = 0x5 // thread+stack
    	LoadCmdDysymtab   LoadCmd = 0xb
    	LoadCmdDylib      LoadCmd = 0xc // load dylib command
    	LoadCmdDylinker   LoadCmd = 0xf // id dylinker command (not load dylinker command)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 14 00:56:52 UTC 2021
    - 7.6K bytes
    - Viewed (0)
  4. src/net/main_conf_test.go

    	c := systemConf()
    	oldGo := c.netGo
    	oldCgo := c.netCgo
    	fixup := func() {
    		c.netGo = oldGo
    		c.netCgo = oldCgo
    	}
    	c.netGo = true
    	c.netCgo = false
    	return fixup
    }
    
    // forceCgoDNS forces the resolver configuration to use the cgo resolver
    // and returns a fixup function to restore the old settings.
    func forceCgoDNS() func() {
    	c := systemConf()
    	oldGo := c.netGo
    	oldCgo := c.netCgo
    	fixup := func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 19 20:29:27 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. src/cmd/vendor/github.com/google/pprof/internal/driver/webhtml.go

    		template.Must(sub.Parse(contents))
    		template.Must(templates.AddParseTree(name, sub.Tree))
    	}
    
    	// Embedded files.
    	def("css", loadCSS("html/common.css"))
    	def("header", loadFile("html/header.html"))
    	def("graph", loadFile("html/graph.html"))
    	def("graph_css", loadCSS("html/graph.css"))
    	def("script", loadJS("html/common.js"))
    	def("top", loadFile("html/top.html"))
    	def("sourcelisting", loadFile("html/source.html"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  6. src/cmd/link/internal/ld/macho_combine_dwarf.go

    package ld
    
    import (
    	"bytes"
    	"compress/zlib"
    	"debug/macho"
    	"encoding/binary"
    	"fmt"
    	"io"
    	"os"
    	"reflect"
    	"unsafe"
    )
    
    type loadCmd struct {
    	Cmd macho.LoadCmd
    	Len uint32
    }
    
    type dyldInfoCmd struct {
    	Cmd                      macho.LoadCmd
    	Len                      uint32
    	RebaseOff, RebaseLen     uint32
    	BindOff, BindLen         uint32
    	WeakBindOff, WeakBindLen uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. src/runtime/stubs_s390x.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package runtime
    
    // Called from assembly only; declared for go vet.
    func load_g()
    func save_g()
    
    // getfp returns the frame pointer register of its caller or 0 if not implemented.
    // TODO: Make this a compiler intrinsic
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 10:04:13 UTC 2023
    - 414 bytes
    - Viewed (0)
  8. src/runtime/stubs_arm.go

    // Called from compiler-generated code; declared for go vet.
    func udiv()
    func _div()
    func _divu()
    func _mod()
    func _modu()
    
    // Called from assembly only; declared for go vet.
    func usplitR0()
    func load_g()
    func save_g()
    func emptyfunc()
    func _initcgo()
    func read_tls_fallback()
    
    //go:noescape
    func asmcgocall_no_g(fn, arg unsafe.Pointer)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 10:04:13 UTC 2023
    - 689 bytes
    - Viewed (0)
  9. src/runtime/race_arm64.s

    TEXT	racefuncenter<>(SB), NOSPLIT, $0-0
    	load_g
    	MOVD	g_racectx(g), R0	// goroutine racectx
    	MOVD	R9, R1
    	// void __tsan_func_enter(ThreadState *thr, void *pc);
    	MOVD	$__tsan_func_enter(SB), R9
    	BL	racecall<>(SB)
    	RET
    
    // func runtime·racefuncexit()
    // Called from instrumented code.
    TEXT	runtime·racefuncexit<ABIInternal>(SB), NOSPLIT, $0-0
    	load_g
    	MOVD	g_racectx(g), R0	// race context
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  10. src/runtime/stubs_mipsx.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build mips || mipsle
    
    package runtime
    
    // Called from assembly only; declared for go vet.
    func load_g()
    func save_g()
    
    // getfp returns the frame pointer register of its caller or 0 if not implemented.
    // TODO: Make this a compiler intrinsic
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 10:04:13 UTC 2023
    - 441 bytes
    - Viewed (0)
Back to top