Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for hostObjSyms (0.13 sec)

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

    }
    
    // Set symbol attributes or flags based on cgo directives.
    // Any newly discovered HOSTOBJ syms are added to 'hostObjSyms'.
    func setCgoAttr(ctxt *Link, file string, pkg string, directives [][]string, hostObjSyms map[loader.Sym]struct{}) {
    	l := ctxt.loader
    	for _, f := range directives {
    		switch f[0] {
    		case "cgo_import_dynamic":
    			if len(f) < 2 || len(f) > 4 {
    				break
    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/lib.go

    func (ctxt *Link) loadcgodirectives() {
    	l := ctxt.loader
    	hostObjSyms := make(map[loader.Sym]struct{})
    	for _, d := range ctxt.cgodata {
    		setCgoAttr(ctxt, d.file, d.pkg, d.directives, hostObjSyms)
    	}
    	ctxt.cgodata = nil
    
    	if ctxt.LinkMode == LinkInternal {
    		// Drop all the cgo_import_static declarations.
    		// Turns out we won't be needing them.
    		for symIdx := range hostObjSyms {
    			if l.SymType(symIdx) == sym.SHOSTOBJ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
Back to top