Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for SetAttrCgoExportDynamic (0.32 sec)

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

    			} else {
    				if ctxt.LinkMode == LinkInternal && !l.AttrCgoExportDynamic(s) {
    					// Dynamic cgo exports appear
    					// in the exported symbol table.
    					ctxt.dynexp = append(ctxt.dynexp, s)
    				}
    				l.SetAttrCgoExportDynamic(s, true)
    			}
    
    			continue
    
    		case "cgo_dynamic_linker":
    			if len(f) != 2 {
    				break
    			}
    
    			if *flagInterpreter == "" {
    				if interpreter != "" && interpreter != f[1] {
    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/macho.go

    			ver := 0
    			// _cgo_panic is a Go function, so it uses ABIInternal.
    			if name == "_cgo_panic" {
    				ver = abiInternalVer
    			}
    			s := ctxt.loader.Lookup(name, ver)
    			if s != 0 {
    				ctxt.loader.SetAttrCgoExportDynamic(s, false)
    			}
    		}
    	}
    }
    
    func machoadddynlib(lib string, linkmode LinkMode) {
    	if seenlib[lib] || linkmode == LinkExternal {
    		return
    	}
    	seenlib[lib] = true
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 43.9K bytes
    - Viewed (0)
  3. src/cmd/link/internal/loader/loader.go

    func (l *Loader) AttrCgoExportDynamic(i Sym) bool {
    	_, ok := l.attrCgoExportDynamic[i]
    	return ok
    }
    
    // SetAttrCgoExportDynamic sets the "cgo_export_dynamic" for a symbol
    // (see AttrCgoExportDynamic).
    func (l *Loader) SetAttrCgoExportDynamic(i Sym, v bool) {
    	if v {
    		l.attrCgoExportDynamic[i] = struct{}{}
    	} else {
    		delete(l.attrCgoExportDynamic, 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