Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 599 for linknew (0.2 sec)

  1. src/cmd/compile/internal/ssa/export_test.go

    	"cmd/internal/sys"
    )
    
    var CheckFunc = checkFunc
    var Opt = opt
    var Deadcode = deadcode
    var Copyelim = copyelim
    
    var testCtxts = map[string]*obj.Link{
    	"amd64": obj.Linknew(&x86.Linkamd64),
    	"s390x": obj.Linknew(&s390x.Links390x),
    	"arm64": obj.Linknew(&arm64.Linkarm64),
    }
    
    func testConfig(tb testing.TB) *Conf      { return testConfigArch(tb, "amd64") }
    func testConfigS390X(tb testing.TB) *Conf { return testConfigArch(tb, "s390x") }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 21:19:39 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/data_test.go

    import (
    	"cmd/internal/objabi"
    	"cmd/internal/sys"
    	"cmd/link/internal/loader"
    	"internal/buildcfg"
    	"testing"
    )
    
    func setUpContext(arch *sys.Arch, iself bool, ht objabi.HeadType, bm, lm string) *Link {
    	ctxt := linknew(arch)
    	ctxt.HeadType = ht
    	er := loader.ErrorReporter{}
    	ctxt.loader = loader.NewLoader(0, &er)
    	ctxt.BuildMode.Set(bm)
    	ctxt.LinkMode.Set(lm)
    	ctxt.IsELF = iself
    	ctxt.mustSetHeadType()
    	ctxt.setArchSyms()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 05 19:20:01 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. src/cmd/internal/obj/x86/asm_test.go

    	// TODO(quasilyte): test edge cases for Hsolaris, etc?
    
    	t.Run("linux/AMD64", func(t *testing.T) {
    		ctxtAMD64 := obj.Linknew(&Linkamd64)
    		ctxtAMD64.Headtype = objabi.Hlinux // See #32028
    		runTest(t, ctxtAMD64, oclassTestsAMD64)
    	})
    
    	t.Run("linux/386", func(t *testing.T) {
    		ctxt386 := obj.Linknew(&Link386)
    		ctxt386.Headtype = objabi.Hlinux // See #32028
    		runTest(t, ctxt386, oclassTests386)
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 28 19:39:51 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  4. src/cmd/asm/main.go

    	telemetry.CountFlags("asm/flag:", *flag.CommandLine)
    
    	architecture := arch.Set(GOARCH, *flags.Shared || *flags.Dynlink)
    	if architecture == nil {
    		log.Fatalf("unrecognized architecture %s", GOARCH)
    	}
    	ctxt := obj.Linknew(architecture.LinkArch)
    	ctxt.Debugasm = flags.PrintOut
    	ctxt.Debugvlog = flags.DebugV
    	ctxt.Flag_dynlink = *flags.Dynlink
    	ctxt.Flag_linkshared = *flags.Linkshared
    	ctxt.Flag_shared = *flags.Shared || *flags.Dynlink
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. src/cmd/internal/obj/objfile_test.go

    	s2.Set(AttrContentAddressable, true)
    	h1 := contentHash64(s1)
    	h2 := contentHash64(s2)
    	if h1 != h2 {
    		t.Errorf("contentHash64(s1)=%x, contentHash64(s2)=%x, expect equal", h1, h2)
    	}
    
    	ctxt := Linknew(&dummyArch) // little endian
    	s3 := ctxt.Int64Sym(int64('A'))
    	h3 := contentHash64(s3)
    	if h1 != h3 {
    		t.Errorf("contentHash64(s1)=%x, contentHash64(s3)=%x, expect equal", h1, h3)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:21:30 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  6. src/cmd/link/internal/ld/sym.go

    // THE SOFTWARE.
    
    package ld
    
    import (
    	"cmd/internal/objabi"
    	"cmd/internal/sys"
    	"cmd/link/internal/loader"
    	"cmd/link/internal/sym"
    	"internal/buildcfg"
    	"log"
    	"runtime"
    )
    
    func linknew(arch *sys.Arch) *Link {
    	ler := loader.ErrorReporter{AfterErrorAction: afterErrorAction}
    	ctxt := &Link{
    		Target:        Target{Arch: arch},
    		version:       sym.SymVerStatic,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 05 19:28:25 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/main.go

    )
    
    func init() {
    	flag.Var(&rpath, "r", "set the ELF dynamic linker search `path` to dir1:dir2:...")
    	flag.Var(&flagExtld, "extld", "use `linker` when linking in external mode")
    	flag.Var(&flagExtldflags, "extldflags", "pass `flags` to external linker")
    	flag.Var(&flagW, "w", "disable DWARF generation")
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:59:50 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  8. src/cmd/internal/obj/sym.go

    package obj
    
    import (
    	"cmd/internal/goobj"
    	"cmd/internal/notsha256"
    	"cmd/internal/objabi"
    	"encoding/base64"
    	"encoding/binary"
    	"fmt"
    	"internal/buildcfg"
    	"log"
    	"math"
    	"sort"
    )
    
    func Linknew(arch *LinkArch) *Link {
    	ctxt := new(Link)
    	ctxt.hash = make(map[string]*LSym)
    	ctxt.funchash = make(map[string]*LSym)
    	ctxt.statichash = make(map[string]*LSym)
    	ctxt.Arch = arch
    	ctxt.Pathname = objabi.WorkingDir()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 14:41:10 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/test/abiutils_test.go

    func TestMain(m *testing.M) {
    	ssagen.Arch.LinkArch = &x86.Linkamd64
    	ssagen.Arch.REGSP = x86.REGSP
    	ssagen.Arch.MAXWIDTH = 1 << 50
    	types.MaxWidth = ssagen.Arch.MAXWIDTH
    	base.Ctxt = obj.Linknew(ssagen.Arch.LinkArch)
    	base.Ctxt.DiagFunc = base.Errorf
    	base.Ctxt.DiagFlush = base.FlushErrors
    	base.Ctxt.Bso = bufio.NewWriter(os.Stdout)
    	types.LocalPkg = types.NewPkg("p", "local")
    	types.LocalPkg.Prefix = "p"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 15:11:40 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/operand_test.go

    	buildcfg.GOARCH = goarch
    	architecture := arch.Set(goarch, false)
    	if architecture == nil {
    		panic("asm: unrecognized architecture " + goarch)
    	}
    	ctxt := obj.Linknew(architecture.LinkArch)
    	ctxt.Pkgpath = "pkg"
    	return architecture, ctxt
    }
    
    func newParser(goarch string) *Parser {
    	architecture, ctxt := setArch(goarch)
    	return NewParser(ctxt, architecture, nil)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 18:31:05 UTC 2023
    - 23.9K bytes
    - Viewed (0)
Back to top