- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 311 for lchflags (0.16 sec)
-
src/cmd/link/internal/ld/issue33808_test.go
func TestIssue33808(t *testing.T) { if runtime.GOOS != "darwin" { return } testenv.MustHaveGoBuild(t) testenv.MustHaveCGO(t) t.Parallel() dir := t.TempDir() f := gobuild(t, dir, prog, "-ldflags=-linkmode=external") f.Close() syms, err := f.Symbols() if err != nil { t.Fatalf("Error reading symbols: %v", err) } name := "log.Fatalf" for _, sym := range syms {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 08 20:03:01 UTC 2021 - 792 bytes - Viewed (0) -
test/fixedbugs/issue10607.go
) func main() { test("internal") test("external") // The 'cgo' build constraint should imply that a linker is available. } func test(linkmode string) { out, err := exec.Command("go", "run", "-ldflags", "-B=0x12345678 -linkmode="+linkmode, filepath.Join("fixedbugs", "issue10607a.go")).CombinedOutput() if err != nil { fmt.Printf("BUG: linkmode=%s %v\n%s\n", linkmode, err, out) os.Exit(1) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 776 bytes - Viewed (0) -
test/fixedbugs/issue32680.go
// run -gcflags=-d=ssa/check/on // Copyright 2019 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // As of 2019-06, bug affects/ed amd64 and s390x. package main var foo = []byte{105, 57, 172, 152} func main() { for i := 0; i < len(foo); i += 4 { // Requires inlining and non-constant i
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 20 16:56:47 UTC 2019 - 687 bytes - Viewed (0) -
samples/tcp-echo/src/Dockerfile
# limitations under the License. # build a tcp-echo binary using the golang container FROM golang:1.22 as builder WORKDIR /go/src/istio.io/tcp-echo-server/ COPY main.go . RUN CGO_ENABLED=0 GOOS=linux go build -ldflags '-extldflags -static -s -w' -o tcp-echo main.go FROM scratch WORKDIR /bin/ COPY --from=builder /go/src/istio.io/tcp-echo-server/tcp-echo . ENTRYPOINT [ "/bin/tcp-echo" ] CMD [ "9000", "hello" ]
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Mar 16 22:03:02 UTC 2024 - 989 bytes - Viewed (0) -
test/maymorestack.go
// run -gcflags=-d=maymorestack=main.mayMoreStack // Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test the maymorestack testing hook by injecting a hook that counts // how many times it is called and checking that count. package main import "runtime" var count uint32 //go:nosplit func mayMoreStack() { count++
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 05 00:52:06 UTC 2021 - 1.1K bytes - Viewed (0) -
src/cmd/go/testdata/mod/rsc.io_!c!g!o_v1.0.0.txt
module rsc.io/CGO -- cgo.go -- // Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package CGO // #cgo CFLAGS: -I${SRCDIR} import "C"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 01 19:54:32 UTC 2018 - 399 bytes - Viewed (0) -
src/cmd/compile/internal/test/inl_test.go
args := []string{"build", "-gcflags=runtime=-m", "runtime"} cmd := testenv.Command(t, testenv.GoToolPath(t), args...) b, err := cmd.CombinedOutput() if err != nil { t.Fatalf("build failed (%v): %s", err, b) } mbase := collectInlCands(string(b)) // Redo the build with -cover, also with "-m". args = []string{"build", "-gcflags=runtime=-m", mode, "runtime"}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 09 04:07:57 UTC 2024 - 10.7K bytes - Viewed (0) -
src/cmd/go/testdata/script/link_syso_issue33139.txt
# External linking is not supported on linux/ppc64. # See: https://github.com/golang/go/issues/8912 [GOOS:linux] [GOARCH:ppc64] skip cc -c -o syso/objTestImpl.syso syso/src/objTestImpl.c go build -ldflags='-linkmode=external' ./cmd/main.go -- go.mod -- module m go 1.16 -- syso/objTest.s -- #include "textflag.h" TEXT ·ObjTest(SB), NOSPLIT, $0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 1K bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue21897.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build darwin && cgo && !internal package cgotest /* #cgo LDFLAGS: -framework CoreFoundation #include <CoreFoundation/CoreFoundation.h> */ import "C" import ( "runtime/debug" "testing" "unsafe" ) func test21897(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 1.4K bytes - Viewed (0) -
test/codegen/clobberdeadreg.go
// asmcheck -gcflags=-clobberdeadreg //go:build amd64 // Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package codegen type S struct { a, b, c, d, e, f int } func F(a, b, c int, d S) { // -2401018187971961171 is 0xdeaddeaddeaddead
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 1.3K bytes - Viewed (0)