Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for DefaultPIE (0.19 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/link/internal/ld/dwarf_test.go

    	}
    	rtAttr := dies[0].Val(intdwarf.DW_AT_go_runtime_type)
    	if rtAttr == nil {
    		t.Fatalf("*main.X DIE had no runtime type attr. DIE: %v", dies[0])
    	}
    
    	if platform.DefaultPIE(runtime.GOOS, runtime.GOARCH, false) {
    		return // everything is PIE, addresses are relocated
    	}
    	if rtAttr.(uint64)+types.Addr != addr {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 01:38:11 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  3. 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