- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 51 for LinkMode (7.61 sec)
-
src/cmd/link/internal/ld/ld_test.go
// is arbitrary; we just need something sufficiently large that uses // external linking. exe := filepath.Join(dir, "go.exe") out, err := testenv.Command(t, testenv.GoToolPath(t), "build", "-o", exe, "-ldflags=-linkmode=external -debugtextsize=1048576", "cmd/go").CombinedOutput() if err != nil { t.Fatalf("build failure: %s\n%s\n", err, string(out)) } // Check that we did split text sections.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 05:45:53 UTC 2023 - 10.3K bytes - Viewed (0) -
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) -
src/cmd/link/internal/arm/asm.go
default: ctxt.Errorf(s, "trampoline called with non-jump reloc: %d (%s)", r.Type(), sym.RelocName(ctxt.Arch, r.Type())) } } // generate a trampoline to target+offset. func gentramp(arch *sys.Arch, linkmode ld.LinkMode, ldr *loader.Loader, tramp *loader.SymbolBuilder, target loader.Sym, offset int64) { tramp.SetSize(12) // 3 instructions P := make([]byte, tramp.Size()) t := ldr.SymValue(target) + offset
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 23 05:58:20 UTC 2023 - 22.9K bytes - Viewed (0) -
src/cmd/link/internal/ld/xcoff.go
Xoffset: uint32(f.stringTable.add(name)), Xftype: XFT_FN, Xauxtype: _AUX_FILE, } f.addSymbol(auxf) /* Dwarf */ for _, sect := range Segdwarf.Sections { var dwsize uint64 if ctxt.LinkMode == LinkInternal { // Find the size of this corresponding package DWARF compilation unit. // This size is set during DWARF generation (see dwarf.go). dwsize = getDwsectCUSize(sect.Name, name)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 01 19:58:23 UTC 2023 - 51.8K bytes - Viewed (0) -
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) -
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) -
src/cmd/objdump/objdump_test.go
func TestDisasmExtld(t *testing.T) { testenv.MustHaveCGO(t) switch runtime.GOOS { case "plan9": t.Skipf("skipping on %s", runtime.GOOS) } t.Parallel() testDisasm(t, "fmthello.go", false, false, "-ldflags=-linkmode=external") } func TestDisasmPIE(t *testing.T) { if !platform.BuildModeSupported("gc", "pie", runtime.GOOS, runtime.GOARCH) { t.Skipf("skipping on %s/%s, PIE buildmode not supported", runtime.GOOS, runtime.GOARCH)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 8.9K bytes - Viewed (0) -
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) -
src/debug/pe/file_test.go
args := []string{"build", "-o", exe} switch linktype { case linkNoCgo: case linkCgoDefault: case linkCgoInternal: args = append(args, "-ldflags", "-linkmode=internal") case linkCgoExternal: args = append(args, "-ldflags", "-linkmode=external") default: t.Fatalf("invalid linktype parameter of %v", linktype) } args = append(args, src)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 01 02:25:16 UTC 2023 - 22.3K bytes - Viewed (0) -
src/cmd/link/internal/ld/data.go
r := relocs.At(ri) if r.IsMarker() { continue // skip marker relocations } rSym := r.Sym() if r.Weak() && !ldr.AttrReachable(rSym) { continue } if ctxt.BuildMode == BuildModePIE && ctxt.LinkMode == LinkInternal { // It's expected that some relocations will be done // later by relocsym (R_TLS_LE, R_ADDROFF), so // don't worry if Adddynrel returns false. thearch.Adddynrel(target, ldr, syms, s, r, ri)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 12 15:10:50 UTC 2024 - 100.5K bytes - Viewed (1)