Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SetAttrCgoExportStatic (0.37 sec)

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

    					// 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.
    					ctxt.dynexp = append(ctxt.dynexp, s)
    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

    // written by cgo.
    func (l *Loader) AttrCgoExportStatic(i Sym) bool {
    	_, ok := l.attrCgoExportStatic[i]
    	return ok
    }
    
    // SetAttrCgoExportStatic sets the "cgo_export_static" for a symbol
    // (see AttrCgoExportStatic).
    func (l *Loader) SetAttrCgoExportStatic(i Sym, v bool) {
    	if v {
    		l.attrCgoExportStatic[i] = struct{}{}
    	} else {
    		delete(l.attrCgoExportStatic, i)
    	}
    }
    
    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