Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for LinkMode (3.69 sec)

  1. src/cmd/go/testdata/script/test_ppc64_linker_funcs.txt

    #
    # Verifies golang.org/issue/52366 for linux/ppc64le
    [!GOOS:linux] skip
    [!compiler:gc] skip
    [!cgo] skip
    [!GOARCH:ppc64le] skip
    
    go build -ldflags='-linkmode=internal'
    exec ./abitest
    stdout success
    
    go build -buildmode=pie -o abitest.pie -ldflags='-linkmode=internal'
    exec ./abitest.pie
    stdout success
    
    -- go.mod --
    module abitest
    
    -- abitest.go --
    package main
    
    /*
    #cgo CFLAGS: -Os
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 20:54:08 UTC 2024
    - 1K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/elf_test.go

    		},
    		{
    			name:             "bindnow-linkmode-internal",
    			args:             []string{"-ldflags", "-bindnow -linkmode=internal"},
    			prog:             progC,
    			mustHaveCGO:      true,
    			mustInternalLink: true,
    			wantDfBindNow:    true,
    			wantDf1Now:       true,
    		},
    		{
    			name:                 "bindnow-pie-linkmode-internal",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 13:44:07 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/macho.go

    			}
    			s := ctxt.loader.Lookup(name, ver)
    			if s != 0 {
    				ctxt.loader.SetAttrCgoExportDynamic(s, false)
    			}
    		}
    	}
    }
    
    func machoadddynlib(lib string, linkmode LinkMode) {
    	if seenlib[lib] || linkmode == LinkExternal {
    		return
    	}
    	seenlib[lib] = true
    
    	// Will need to store the library name rounded up
    	// and 24 bytes of header metadata. If not enough
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 43.9K bytes
    - Viewed (0)
  4. src/cmd/dist/test.go

    			// cgoTest we want static linking.
    			gt.buildmode = ""
    			if linkmode == "external" {
    				ldflags = append(ldflags, `-extldflags "-static -pthread"`)
    			} else if linkmode == "auto" {
    				gt.env = append(gt.env, "CGO_LDFLAGS=-static -pthread")
    			} else {
    				panic("unknown linkmode with static build: " + linkmode)
    			}
    			gt.tags = append(gt.tags, "static")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 16:01:35 UTC 2024
    - 50K bytes
    - Viewed (0)
  5. src/cmd/link/link_test.go

    	// deterministic.
    	linktmp := filepath.Join(tmpdir, "linktmp")
    	if err := os.Mkdir(linktmp, 0777); err != nil {
    		t.Fatal(err)
    	}
    
    	// Link with -v -linkmode=external to see the flags we pass to the
    	// external linker.
    	ldflags := "-ldflags=-v -linkmode=external -tmpdir=" + linktmp
    	var out0 []byte
    	for i := 0; i < 5; i++ {
    		cmd := testenv.Command(t, testenv.GoToolPath(t), "build", ldflags, "-o", exe, src)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:02 UTC 2024
    - 43.5K bytes
    - Viewed (0)
  6. src/cmd/link/internal/ld/elf.go

    		elfshbits(ctxt.LinkMode, sect)
    	}
    	for _, sect := range Segrodata.Sections {
    		elfshbits(ctxt.LinkMode, sect)
    	}
    	for _, sect := range Segrelrodata.Sections {
    		elfshbits(ctxt.LinkMode, sect)
    	}
    	for _, sect := range Segdata.Sections {
    		elfshbits(ctxt.LinkMode, sect)
    	}
    	for _, sect := range Segdwarf.Sections {
    		elfshbits(ctxt.LinkMode, sect)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 13:29:54 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  7. src/cmd/link/doc.go

    		This is only used in internal link mode.
    		If not set, default value comes from running the compiler,
    		which may be set by the -extld option.
    		Set to "none" to use no support library.
    	-linkmode mode
    		Set link mode (internal, external, auto).
    		This sets the linking mode as described in cmd/cgo/doc.go.
    	-linkshared
    		Link against installed Go shared libraries (experimental).
    	-memprofile file
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 16:11:52 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/lib.go

    	// We now have enough information to determine the link mode.
    	determineLinkMode(ctxt)
    
    	if ctxt.LinkMode == LinkExternal && !iscgo && !(buildcfg.GOOS == "darwin" && ctxt.BuildMode != BuildModePlugin && ctxt.Arch.Family == sys.AMD64) {
    		// This indicates a user requested -linkmode=external.
    		// The startup code uses an import of runtime/cgo to decide
    		// whether to initialize the TLS.  So give it one. This could
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/main.go

    	}
    	flagHeadType := flag.String("H", "", "set header `type`")
    	flag.BoolVar(&ctxt.linkShared, "linkshared", false, "link against installed Go shared libraries")
    	flag.Var(&ctxt.LinkMode, "linkmode", "set link `mode`")
    	flag.Var(&ctxt.BuildMode, "buildmode", "set build `mode`")
    	flag.BoolVar(&ctxt.compressDWARF, "compressdwarf", true, "compress DWARF if possible")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:59:50 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  10. src/make.bash

    #
    # GO_EXTLINK_ENABLED: Set to 1 to invoke the host linker when building
    # packages that use cgo.  Set to 0 to do all linking internally.  This
    # controls the default behavior of the linker's -linkmode option.  The
    # default value depends on the system.
    #
    # GO_LDSO: Sets the default dynamic linker/loader (ld.so) to be used
    # by the internal linker.
    #
    # CC: Command line to run to compile C code for GOHOSTARCH.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:48:46 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top