Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 814 for linking (0.13 sec)

  1. src/cmd/asm/internal/asm/testdata/amd64dynlinkerror.s

    	MOVQ R15, AX // ERROR "when dynamic linking, R15 is clobbered by a global variable access and is used here"
    	RET
    TEXT ·a8(SB), 0, $0-0
    	CMPL runtime·writeBarrier(SB), $0
    	ADDQ AX, R15 // ERROR "when dynamic linking, R15 is clobbered by a global variable access and is used here"
    	RET
    TEXT ·a9(SB), 0, $0-0
    	CMPL runtime·writeBarrier(SB), $0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 15 20:45:41 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/cgo_suspect_flag_force_external.txt

    # combination with selected "unusual" flags (involving plugins, LTO)
    # that we force external linking.  See related
    # issues 58619,  58620, and 58848.
    
    [compiler:gccgo] skip # only external linking for gccgo
    
    [!cgo] skip 'test verifies behavior that depends on CGO_CFLAGS'
    [mustlinkext] skip 'test expects internal linking for non-cgo programs'
    
    # Here we build three program: one with explicit CGO use, one with no
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 25 18:16:01 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/build_static.txt

    [short] skip 'links and runs binaries'
    
    # This test requires external linking. Assume that if cgo is supported
    # then external linking works.
    [!cgo] skip 'requires a C linker'
    
    # Only run on Unix systems.
    [GOOS:windows] skip
    [GOOS:plan9] skip
    
    # Ordinary build should work.
    go build
    exec ./hello
    stdout Hello
    
    # Building with -linkmode=external should not say anything about
    # runtime/cgo (issue #31544).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 20 22:03:35 UTC 2023
    - 926 bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/config.go

    				ctxt.Logf("external linking prefer list is %v\n", preferlinkext)
    			}
    			if extNeeded || (iscgo && (externalobj || preferExternal)) {
    				ctxt.LinkMode = LinkExternal
    			} else {
    				ctxt.LinkMode = LinkInternal
    			}
    		}
    	}
    
    	switch ctxt.LinkMode {
    	case LinkInternal:
    		if extNeeded {
    			Exitf("internal linking requested %sbut external linking required: %s", via, extReason)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 23 05:14:11 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/test_android_issue62123.txt

    stderr 'android/amd64 requires external \(cgo\) linking, but cgo is not enabled'
    ! stderr 'cannot find runtime/cgo'
    
    ! go test -c -o $devnull os
    stderr '# os\nandroid/amd64 requires external \(cgo\) linking, but cgo is not enabled'
    ! stderr 'cannot find runtime/cgo'
    
    env GOOS=ios GOARCH=arm64 CGO_ENABLED=0
    
    ! go build -o $devnull cmd/buildid
    stderr 'ios/arm64 requires external \(cgo\) linking, but cgo is not enabled'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 23 21:55:28 UTC 2023
    - 683 bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/cgo_stubs_ppc64x_internal_linking_test.go

    import "testing"
    
    // If gcc is used, and linking internally, __mulsc3 and __muldc3
    // will be linked in from libgcc which make several R_PPC64_TOC16_DS
    // relocations which may not be resolvable with the internal linker.
    func test8694(t *testing.T) { t.Skip("not supported on ppc64/ppc64le with internal linking") }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 15:35:35 UTC 2024
    - 631 bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/gccgo_link_c.txt

    # Issue #7573
    # cmd/cgo: undefined reference when linking a C-library using gccgo
    
    [!cgo] skip
    [!exec:gccgo] skip
    [cross] skip  # gccgo can't necessarily cross-compile, so don't assume it will reach the step where we expect it to fail
    
    ! go build -x -compiler gccgo
    stderr 'gccgo.*\-L [^ ]*alibpath \-lalib' # make sure that Go-inline "#cgo LDFLAGS:" ("-L alibpath -lalib") passed to gccgo linking stage
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 16:38:51 UTC 2023
    - 617 bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/cgo_undef.txt

    [!exec:ar] skip
    
    cc -c -o a/b.syso b/b.c
    cc -c -o b/lib.o b/lib.c
    exec ar rc a/libb.a b/lib.o
    go build
    ! go build -ldflags=-linkmode=internal
    stderr 'some packages could not be built to support internal linking.*m/c|requires external linking|does not support internal cgo'
    
    -- go.mod --
    module m
    
    -- a/a.go --
    package a
    
    // #cgo LDFLAGS: -L. -lb
    // extern int CFn(int);
    import "C"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 22 20:56:07 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/swift/SwiftLinkerTest.groovy

            1 * invocationContext.createInvocation("linking lib", outputFile.parentFile, expectedArgs, operationLogger) >> invocation
            1 * queue.add(invocation)
            1 * queue.setLogLocation(LOG_LOCATION)
            0 * _
        }
    
        def "use the emit-library flag when linking shared library"() {
            given:
            def testDir = tmpDirProvider.testDirectory
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 9K bytes
    - Viewed (0)
  10. src/cmd/link/linkbig_test.go

    		t.Fatalf("Program built with internal linking failed to run with err %v, output: %s", err, out)
    	}
    
    	// Build and run with external linking
    	cmd = testenv.Command(t, testenv.GoToolPath(t), "build", "-o", "bigtext", "-ldflags", "-linkmode=external")
    	cmd.Dir = tmpdir
    	out, err = cmd.CombinedOutput()
    	if err != nil {
    		t.Fatalf("Build failed for big text program with external linking: %v, output: %s", err, out)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:22:14 UTC 2022
    - 3.5K bytes
    - Viewed (0)
Back to top