Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for AddCgoExport (0.2 sec)

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

    				if ctxt.LinkMode == LinkInternal {
    					// For internal linking, we're
    					// responsible for resolving
    					// relocations from host objects.
    					// Record the right Go symbol
    					// version to use.
    					l.AddCgoExport(s)
    				}
    				l.SetAttrCgoExportStatic(s, true)
    			} else {
    				if ctxt.LinkMode == LinkInternal && !l.AttrCgoExportDynamic(s) {
    					// Dynamic cgo exports appear
    					// in the exported symbol table.
    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/loader/loader.go

    	} else {
    		l.symsByName[ver][name] = i
    	}
    	return i
    }
    
    // AddCgoExport records a cgo-exported symbol in l.CgoExports.
    // This table is used to identify the correct Go symbol ABI to use
    // to resolve references from host objects (which don't have ABIs).
    func (l *Loader) AddCgoExport(s Sym) {
    	if l.CgoExports == nil {
    		l.CgoExports = make(map[string]Sym)
    	}
    	l.CgoExports[l.SymName(s)] = s
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:10 UTC 2024
    - 81.5K bytes
    - Viewed (0)
Back to top