Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for addSym (0.21 sec)

  1. src/cmd/link/internal/ld/macho.go

    			if ldr.SymType(s) == sym.STEXT {
    				addsym(s)
    			}
    		}
    		for n := range Segtext.Sections[1:] {
    			s := ldr.Lookup(fmt.Sprintf("runtime.text.%d", n+1), 0)
    			if s != 0 {
    				addsym(s)
    			} else {
    				break
    			}
    		}
    		if !ctxt.DynlinkingGo() {
    			s := ldr.Lookup("runtime.etext", 0)
    			if ldr.SymType(s) == sym.STEXT {
    				addsym(s)
    			}
    		}
    	}
    
    	// Add text symbols.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 43.9K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/pe.go

    	// Add special runtime.text and runtime.etext symbols.
    	s := ldr.Lookup("runtime.text", 0)
    	if ldr.SymType(s) == sym.STEXT {
    		addsym(s)
    	}
    	s = ldr.Lookup("runtime.etext", 0)
    	if ldr.SymType(s) == sym.STEXT {
    		addsym(s)
    	}
    
    	// Add text symbols.
    	for _, s := range ctxt.Textp {
    		addsym(s)
    	}
    
    	shouldBeInSymbolTable := func(s loader.Sym) bool {
    		if ldr.AttrNotInSymbolTable(s) {
    			return false
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:01:27 UTC 2023
    - 48.8K bytes
    - Viewed (0)
  3. src/cmd/link/internal/loader/loader_test.go

    // data or relocations).
    func addDummyObjSym(t *testing.T, ldr *Loader, or *oReader, name string) Sym {
    	idx := uint32(len(ldr.objSyms))
    	st := loadState{l: ldr}
    	return st.addSym(name, 0, or, idx, nonPkgDef, &goobj.Sym{})
    }
    
    func mkLoader() *Loader {
    	er := ErrorReporter{}
    	ldr := NewLoader(0, &er)
    	er.ldr = ldr
    	return ldr
    }
    
    func TestAddMaterializedSymbol(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:08:09 UTC 2024
    - 12K bytes
    - Viewed (0)
  4. src/cmd/link/internal/loader/loader.go

    }
    
    // Add a symbol from an object file, return the global index.
    // If the symbol already exist, it returns the index of that symbol.
    func (st *loadState) addSym(name string, ver int, r *oReader, li uint32, kind int, osym *goobj.Sym) Sym {
    	l := st.l
    	if l.extStart != 0 {
    		panic("addSym called after external symbol is created")
    	}
    	i := Sym(len(l.objSyms))
    	if int(i) != len(l.objSyms) { // overflow
    		panic("too many symbols")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:10 UTC 2024
    - 81.5K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/data.go

    }
    
    func (p *GCProg) End(size int64) {
    	p.w.ZeroUntil(size / int64(p.ctxt.Arch.PtrSize))
    	p.w.End()
    	if debugGCProg {
    		fmt.Fprintf(os.Stderr, "ld: end GCProg\n")
    	}
    }
    
    func (p *GCProg) AddSym(s loader.Sym) {
    	ldr := p.ctxt.loader
    	typ := ldr.SymGoType(s)
    
    	// Things without pointers should be in sym.SNOPTRDATA or sym.SNOPTRBSS;
    	// everything we see should have pointers and should therefore have a type.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 12 15:10:50 UTC 2024
    - 100.5K bytes
    - Viewed (0)
  6. test/fixedbugs/bug007.go

    // license that can be found in the LICENSE file.
    
    package main
    
    type (
    	Point struct {
    		x, y float64
    	}
    	Polar Point
    )
    
    func main() {
    }
    
    /*
    bug7.go:5: addtyp: renaming Point to Polar
    main.go.c:14: error: redefinition of typedef ‘_T_2’
    main.go.c:13: error: previous declaration of ‘_T_2’ was here
    main.go.c:16: error: redefinition of ‘struct _T_2’
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:48:57 UTC 2012
    - 481 bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/tests/insert_main_function.mlir

    // Other attributes should be left untouched.
    // CHECK-SAME: attributes {tf.entry_function = {inputs = "add_x:0,add_y:0", outputs = "add:0"}}
    
    // Test the newly created "main" function.
    // CHECK: func.func @main(%[[ARG0:.*]]: tensor<1xf32> {tf_saved_model.index_path = ["add_x:0"]}, %[[ARG1:.*]]: tensor<1xf32> {tf_saved_model.index_path = ["add_y:0"]})
    // CHECK-SAME: -> (tensor<1xf32> {tf_saved_model.index_path = ["add:0"]})
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:49:35 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  8. pkg/controller/storageversionmigrator/resourceversion.go

    		AddFunc: func(obj interface{}) {
    			rvController.addSVM(logger, obj)
    		},
    		UpdateFunc: func(oldObj, newObj interface{}) {
    			rvController.updateSVM(logger, oldObj, newObj)
    		},
    	})
    
    	return rvController
    }
    
    func (rv *ResourceVersionController) addSVM(logger klog.Logger, obj interface{}) {
    	svm := obj.(*svmv1alpha1.StorageVersionMigration)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  9. pkg/controller/storageversionmigrator/storageversionmigrator.go

    		AddFunc: func(obj interface{}) {
    			svmController.addSVM(logger, obj)
    		},
    		UpdateFunc: func(oldObj, newObj interface{}) {
    			svmController.updateSVM(logger, oldObj, newObj)
    		},
    	})
    
    	return svmController
    }
    
    func (svmc *SVMController) Name() string {
    	return svmc.controllerName
    }
    
    func (svmc *SVMController) addSVM(logger klog.Logger, obj interface{}) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  10. pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex.go

    	res := []model.AddressInfo{}
    	type kindindex struct {
    		k     kind.Kind
    		index int
    	}
    	addrm := map[netip.Addr]kindindex{}
    	for _, wl := range a.workloads.List() {
    		overwrite := -1
    		write := true
    		for _, addr := range wl.Addresses {
    			a := byteIPToAddr(addr)
    			if existing, f := addrm[a]; f {
    				// This address was already found. We want unique addresses in the result.
    				// Pod > WorkloadEntry
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 19 17:19:41 UTC 2024
    - 15.8K bytes
    - Viewed (0)
Back to top