- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 33 for LinkMode (0.34 sec)
-
test/fixedbugs/issue10607.go
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) -
src/cmd/link/internal/ld/go.go
// the lists used for roots in the deadcode pass. if f[0] == "cgo_export_static" { if ctxt.LinkMode == LinkExternal && !l.AttrCgoExportStatic(s) { // Static cgo exports appear // in the exported symbol table. ctxt.dynexp = append(ctxt.dynexp, s) } if ctxt.LinkMode == LinkInternal { // For internal linking, we're // responsible for resolving
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 22 16:48:30 UTC 2023 - 11.2K bytes - Viewed (0) -
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) -
src/cmd/link/internal/ld/pe.go
func (sect *peSection) write(out *OutBuf, linkmode LinkMode) error { h := pe.SectionHeader32{ VirtualSize: sect.virtualSize, SizeOfRawData: sect.sizeOfRawData, PointerToRawData: sect.pointerToRawData, PointerToRelocations: sect.pointerToRelocations, NumberOfRelocations: sect.numberOfRelocations, Characteristics: sect.characteristics, } if linkmode != LinkExternal {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 19:01:27 UTC 2023 - 48.8K bytes - Viewed (0) -
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) -
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) -
src/cmd/go/testdata/script/version.txt
env GOFLAGS='-m -v' go version stdout '^go version' env GOFLAGS= env GO111MODULE=on # Check that very basic version lookup succeeds. go build empty.go go version empty$GOEXE [cgo] go build -ldflags=-linkmode=external empty.go [cgo] go version empty$GOEXE # Skip the remaining builds if we are running in short mode. [short] skip # Check that 'go version' and 'go version -m' work on a binary built in module mode.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 05 14:52:04 UTC 2024 - 2.3K bytes - Viewed (0) -
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) -
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) -
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)