Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 69 for symName (0.55 sec)

  1. src/plugin/plugin_dlopen.go

    	doInit(initTasks)
    
    	// Fill out the value of each plugin symbol.
    	updatedSyms := map[string]any{}
    	for symName, sym := range syms {
    		isFunc := symName[0] == '.'
    		if isFunc {
    			delete(syms, symName)
    			symName = symName[1:]
    		}
    
    		fullName := pluginpath + "." + symName
    		cname := make([]byte, len(fullName)+1)
    		copy(cname, fullName)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 14 16:55:22 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/heap.go

    	// sift down
    	i := 0
    	for {
    		c := 2*i + 1 // left child
    		if c >= n {
    			break
    		}
    		if c1 := c + 1; c1 < n && ldr.SymName((*h)[c1]) < ldr.SymName((*h)[c]) {
    			c = c1 // right child
    		}
    		if ldr.SymName((*h)[i]) <= ldr.SymName((*h)[c]) {
    			break
    		}
    		(*h)[i], (*h)[c] = (*h)[c], (*h)[i]
    		i = c
    	}
    
    	return r
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 14 16:55:22 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/arch/x86/x86asm/plan9x.go

    // PC-relative addresses into absolute ones.
    // The symname function queries the symbol table for the program
    // being disassembled. Given a target address it returns the name and base
    // address of the symbol containing the target, if any; otherwise it returns "", 0.
    func GoSyntax(inst Inst, pc uint64, symname SymLookup) string {
    	if symname == nil {
    		symname = func(uint64) (string, uint64) { return "", 0 }
    	}
    	var args []string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 12 20:38:21 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  4. src/plugin/plugin.go

    	return open(path)
    }
    
    // Lookup searches for a symbol named symName in plugin p.
    // A symbol is any exported variable or function.
    // It reports an error if the symbol is not found.
    // It is safe for concurrent use by multiple goroutines.
    func (p *Plugin) Lookup(symName string) (Symbol, error) {
    	return lookup(p, symName)
    }
    
    // A Symbol is a pointer to a variable or function.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 19:46:10 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/errors.go

    type symNameFn func(s loader.Sym) string
    
    // ErrorReporter is used to make error reporting thread safe.
    type ErrorReporter struct {
    	loader.ErrorReporter
    	unresSyms  map[unresolvedSymKey]bool
    	unresMutex sync.Mutex
    	SymName    symNameFn
    }
    
    // errorUnresolved prints unresolved symbol error for rs that is referenced from s.
    func (reporter *ErrorReporter) errorUnresolved(ldr *loader.Loader, s, rs loader.Sym) {
    	reporter.unresMutex.Lock()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 02 14:38:08 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  6. src/cmd/link/internal/ld/inittask.go

    	}
    }
    
    // inittaskSym builds a symbol containing pointers to all the inittasks
    // that need to be run, given a list of root inittask symbols.
    func (ctxt *Link) inittaskSym(rootNames []string, symName string) loader.Sym {
    	ldr := ctxt.loader
    	var roots []loader.Sym
    	for _, n := range rootNames {
    		p := ldr.Lookup(n, 0)
    		if p != 0 {
    			roots = append(roots, p)
    		}
    	}
    	if len(roots) == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 20:09:45 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  7. src/plugin/plugin_stubs.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build (!linux && !freebsd && !darwin) || !cgo
    
    package plugin
    
    import "errors"
    
    func lookup(p *Plugin, symName string) (Symbol, error) {
    	return nil, errors.New("plugin: not implemented")
    }
    
    func open(name string) (*Plugin, error) {
    	return nil, errors.New("plugin: not implemented")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 451 bytes
    - Viewed (0)
  8. src/runtime/plugin.go

    	syms = make(map[string]any, len(md.ptab))
    	for _, ptab := range md.ptab {
    		symName := resolveNameOff(unsafe.Pointer(md.types), ptab.name)
    		t := toRType((*_type)(unsafe.Pointer(md.types))).typeOff(ptab.typ) // TODO can this stack of conversions be simpler?
    		var val any
    		valp := (*[2]unsafe.Pointer)(unsafe.Pointer(&val))
    		(*valp)[0] = unsafe.Pointer(t)
    
    		name := symName.Name()
    		if t.Kind_&abi.KindMask == abi.Func {
    			name = "." + name
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/ar.go

    		}
    		for k, symIdx := range undefs {
    			sname := ctxt.loader.SymName(symIdx)
    			if off := armap[sname]; off != 0 && !loaded[off] {
    				load = append(load, off)
    				loaded[off] = true
    				if ctxt.Debugvlog > 1 {
    					ctxt.Logf("hostArchive(%s): selecting object at offset %x to resolve %s [%d] reference from %s [%d]\n", name, off, sname, symIdx, ctxt.loader.SymName(froms[k]), froms[k])
    				}
    			}
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 19 23:11:11 UTC 2022
    - 7.2K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/x86/seh.go

    	// which are very similar across functions.
    	// Dedup them when possible.
    	hash := base64.StdEncoding.EncodeToString(buf.data)
    	symname := fmt.Sprintf("%d.%s", len(buf.data), hash)
    	return ctxt.LookupInit("go:sehuw."+symname, func(s *obj.LSym) {
    		s.WriteBytes(ctxt, 0, buf.data)
    		s.Type = objabi.SSEHUNWINDINFO
    		s.Set(obj.AttrDuplicateOK, true)
    		s.Set(obj.AttrLocal, true)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 14:41:10 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top