Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for DefaultPIE (0.14 sec)

  1. src/internal/platform/supported.go

    		"windows/386", "windows/amd64", "windows/arm", "windows/arm64":
    		return true
    	}
    	return false
    }
    
    // DefaultPIE reports whether goos/goarch produces a PIE binary when using the
    // "default" buildmode. On Windows this is affected by -race,
    // so force the caller to pass that in to centralize that choice.
    func DefaultPIE(goos, goarch string, isRace bool) bool {
    	switch goos {
    	case "android", "ios":
    		return true
    	case "windows":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:50:22 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. src/cmd/nm/nm_test.go

    			// In case of cgo, .text symbols are also changed.
    			switch code {
    			case "T", "t", "R", "r":
    				return iscgo
    			case "D", "d", "B", "b":
    				return true
    			}
    		}
    		if platform.DefaultPIE(runtime.GOOS, runtime.GOARCH, false) {
    			// Code is always relocated if the default buildmode is PIE.
    			return true
    		}
    		return false
    	}
    
    	dups := make(map[string]bool)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 20 23:32:34 UTC 2023
    - 8.8K bytes
    - Viewed (0)
Back to top