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/go/internal/load/pkg.go

    	// bearing in mind that some systems default to PIE.
    	isPIE := false
    	if cfg.BuildBuildmode == "pie" {
    		isPIE = true
    	} else if cfg.BuildBuildmode == "default" && platform.DefaultPIE(cfg.BuildContext.GOOS, cfg.BuildContext.GOARCH, cfg.BuildRace) {
    		isPIE = true
    	}
    	// If we are building a PIE, and we are on a system
    	// that does not support PIE with internal linking mode,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
Back to top