Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ABIToVersion (0.09 sec)

  1. src/cmd/link/internal/sym/symbol.go

    )
    
    const (
    	SymVerABI0        = 0
    	SymVerABIInternal = 1
    	SymVerABICount    = 2  // Number of internal ABIs
    	SymVerStatic      = 10 // Minimum version used by static (file-local) syms
    )
    
    func ABIToVersion(abi obj.ABI) int {
    	switch abi {
    	case obj.ABI0:
    		return SymVerABI0
    	case obj.ABIInternal:
    		if !buildcfg.Experiment.RegabiWrappers {
    			// If wrappers are not enabled, ABI0 and ABIInternal are actually same
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 22 13:50:24 UTC 2021
    - 933 bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/errors.go

    		var reqABI, haveABI obj.ABI
    		haveABI = ^obj.ABI(0)
    		reqABI, ok := sym.VersionToABI(ldr.SymVersion(rs))
    		if ok {
    			for abi := obj.ABI(0); abi < obj.ABICount; abi++ {
    				v := sym.ABIToVersion(abi)
    				if v == -1 {
    					continue
    				}
    				if rs1 := ldr.Lookup(name, v); rs1 != 0 && ldr.SymType(rs1) != sym.Sxxx && ldr.SymType(rs1) != sym.SXREF {
    					haveABI = abi
    				}
    			}
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 02 14:38:08 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/go.go

    				if !ok {
    					fmt.Fprintf(os.Stderr, "%s: bad ABI in cgo_export directive %s\n", os.Args[0], f)
    					nerrors++
    					return
    				}
    			}
    
    			s := l.LookupOrCreateSym(local, sym.ABIToVersion(abi))
    
    			if l.SymType(s) == sym.SHOSTOBJ {
    				hostObjSyms[s] = struct{}{}
    			}
    
    			switch ctxt.BuildMode {
    			case BuildModeCShared, BuildModeCArchive, BuildModePlugin:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 16:48:30 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  4. src/cmd/link/internal/loader/loader.go

    		}
    	}
    }
    
    func abiToVer(abi uint16, localSymVersion int) int {
    	var v int
    	if abi == goobj.SymABIstatic {
    		// Static
    		v = localSymVersion
    	} else if abiver := sym.ABIToVersion(obj.ABI(abi)); abiver != -1 {
    		// Note that data symbols are "ABI0", which maps to version 0.
    		v = abiver
    	} else {
    		log.Fatalf("invalid symbol ABI: %d", abi)
    	}
    	return v
    }
    
    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