Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 411 for Ldflags (0.09 sec)

  1. src/cmd/cgo/internal/testsanitizers/cc_test.go

    			c.cFlags = append(c.cFlags, "-fPIC")
    			c.ldFlags = append(c.ldFlags, "-fPIC", "-static-libtsan")
    		}
    
    	case "address":
    		c.goFlags = append(c.goFlags, "-asan")
    		// Set the debug mode to print the C stack trace.
    		c.cFlags = append(c.cFlags, "-g")
    
    	case "fuzzer":
    		c.goFlags = append(c.goFlags, "-tags=libfuzzer", "-gcflags=-d=libfuzzer")
    
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 09 20:00:56 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/version_gc_sections.txt

    # This test checks that external linking with --gc-sections does not strip version information.
    
    [short] skip
    [!cgo] skip
    [GOOS:aix] skip  # no --gc-sections
    [GOOS:darwin] skip  # no --gc-sections
    
    go build -ldflags='-linkmode=external -extldflags=-Wl,--gc-sections'
    go version hello$GOEXE
    ! stdout 'not a Go executable'
    ! stderr 'not a Go executable'
    
    -- go.mod --
    module hello
    -- hello.go --
    package main
    
    /*
    */
    import "C"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 02 15:17:57 UTC 2023
    - 460 bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/linkname.txt

    env GO111MODULE=off
    
    # check for linker name in error message about linker crash
    [!compiler:gc] skip
    ! go build -ldflags=-crash_for_testing x.go
    stderr [\\/]tool[\\/].*[\\/]link
    
    -- x.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 219 bytes
    - Viewed (0)
  4. test/fixedbugs/issue20014.go

    // runindir -goexperiment fieldtrack -ldflags -k=main.fieldTrackInfo
    
    // 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.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 21 20:24:34 UTC 2021
    - 246 bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/test/issue8756/issue8756.go

    // Copyright 2016 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 issue8756
    
    /*
    #cgo !darwin LDFLAGS: -lm
    #include <math.h>
    */
    import "C"
    
    func Pow() {
    	C.pow(1, 2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 269 bytes
    - Viewed (0)
  6. test/fixedbugs/issue30908.go

    // rundir -ldflags -strictdups=2 -w=0
    
    // 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.
    
    //go:build !nacl && !js
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 240 bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/issue24161arg/use.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.
    
    //go:build darwin
    
    package issue24161arg
    
    /*
    #cgo LDFLAGS: -framework CoreFoundation
    #include <CoreFoundation/CoreFoundation.h>
    */
    import "C"
    import "testing"
    
    func Test(t *testing.T) {
    	a := test24161array()
    	C.CFArrayCreateCopy(0, a)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 398 bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/testdata/issue32233/lib/lib.go

    // 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.
    
    package lib
    
    /*
    #cgo darwin CFLAGS: -D__MAC_OS_X_VERSION_MAX_ALLOWED=101450
    #cgo darwin LDFLAGS: -framework Foundation -framework AppKit
    #include "stdlib.h"
    int function(void);
    */
    import "C"
    import "fmt"
    
    func DoC() {
    	C.function()
    	fmt.Println("called c function")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:51:40 UTC 2019
    - 428 bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/test_ppc64le_cgo_inline_plt.txt

    #
    # Note, older gcc/clang may accept this option, but
    # ignore it if binutils does not support the relocs.
    [!compiler:gc] skip
    [!cgo] skip
    [!GOARCH:ppc64le] skip
    
    env CGO_CFLAGS='-fno-plt -O2 -g'
    
    go build -ldflags='-linkmode=internal'
    exec ./noplttest
    stdout helloworld
    
    -- go.mod --
    module noplttest
    
    -- noplttest.go --
    package main
    
    /*
    #include <stdio.h>
    void helloworld(void) {
       printf("helloworld\n");
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 719 bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/ld_test.go

    	srcfile := filepath.Join(dir, "test.go")
    	arfile := filepath.Join(dir, "test.a")
    	if err := os.WriteFile(srcfile, []byte(carchiveSrcText), 0666); err != nil {
    		t.Fatal(err)
    	}
    
    	ldf := fmt.Sprintf("-ldflags=-v -tmpdir=%s", dir)
    	argv := []string{"build", "-buildmode=c-archive", "-o", arfile, ldf, srcfile}
    	out, err := testenv.Command(t, testenv.GoToolPath(t), argv...).CombinedOutput()
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 05:45:53 UTC 2023
    - 10.3K bytes
    - Viewed (0)
Back to top