- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for DefaultPIE (0.4 sec)
-
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) -
src/cmd/go/internal/work/init.go
case "windows": // Do not add usual .exe suffix to the .dll file. cfg.ExeSuffix = "" } } ldBuildmode = "c-shared" case "default": ldBuildmode = "exe" if platform.DefaultPIE(cfg.Goos, cfg.Goarch, cfg.BuildRace) { ldBuildmode = "pie" if cfg.Goos != "windows" && !gccgo { codegenArg = "-shared" } } case "exe": pkgsFilter = pkgsMain ldBuildmode = "exe"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 19:13:34 UTC 2023 - 12.2K bytes - Viewed (0) -
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) -
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) -
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)