- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for LinkMode (0.12 sec)
-
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/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/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/elf_test.go
{{range $index, $element := .}} fmt.Println(V{{$index}}) {{end}} } ` func TestPIESize(t *testing.T) { testenv.MustHaveGoBuild(t) // We don't want to test -linkmode=external if cgo is not supported. // On some systems -buildmode=pie implies -linkmode=external, so just // always skip the test if cgo is not supported. testenv.MustHaveCGO(t)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 16:34:01 UTC 2023 - 13.7K bytes - Viewed (0) -
src/cmd/link/internal/riscv64/asm.go
default: ctxt.Errorf(s, "trampoline called with non-jump reloc: %d (%s)", r.Type(), sym.RelocName(ctxt.Arch, r.Type())) } } func genCallTramp(arch *sys.Arch, linkmode ld.LinkMode, ldr *loader.Loader, tramp *loader.SymbolBuilder, target loader.Sym, offset int64) { tramp.AddUint32(arch, 0x00000f97) // AUIPC $0, X31 tramp.AddUint32(arch, 0x000f8067) // JALR X0, (X31)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 01 08:06:08 UTC 2024 - 22.8K bytes - Viewed (0) -
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/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/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)