Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,605 for textp (0.08 sec)

  1. src/cmd/link/internal/riscv64/asm.go

    			hi20Syms = append(hi20Syms, sb.Sym())
    		}
    	}
    	ctxt.Textp = append(ctxt.Textp, hi20Syms...)
    	ldr.SortSyms(ctxt.Textp)
    }
    
    func findHI20Symbol(ctxt *ld.Link, ldr *loader.Loader, val int64) loader.Sym {
    	idx := sort.Search(len(ctxt.Textp), func(i int) bool { return ldr.SymValue(ctxt.Textp[i]) >= val })
    	if idx >= len(ctxt.Textp) {
    		return 0
    	}
    	if s := ctxt.Textp[idx]; ldr.SymValue(s) == val && ldr.SymType(s) == sym.STEXT {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 01 08:06:08 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/data.go

    		for i < len(textp) && (ldr.SubSym(textp[i]) != 0 || ldr.AttrSubSymbol(textp[i])) {
    			i++
    		}
    		textp = textp[i:]
    		r.Shuffle(len(textp), func(i, j int) {
    			textp[i], textp[j] = textp[j], textp[i]
    		})
    	}
    
    	text := ctxt.xdefine("runtime.text", sym.STEXT, 0)
    	etext := ctxt.xdefine("runtime.etext", sym.STEXT, 0)
    	ldr.SetSymSect(text, sect)
    	if ctxt.IsAIX() && ctxt.IsExternal() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 12 15:10:50 UTC 2024
    - 100.5K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/pcln.go

    			indexes[i] = NOIDX
    		}
    		idx := int32(0)
    		for i, s := range ctxt.Textp {
    			if !emitPcln(ctxt, s, container) {
    				continue
    			}
    			p := ldr.SymValue(s)
    			var e loader.Sym
    			i++
    			if i < len(ctxt.Textp) {
    				e = ctxt.Textp[i]
    			}
    			for e != 0 && !emitPcln(ctxt, e, container) && i < len(ctxt.Textp) {
    				e = ctxt.Textp[i]
    				i++
    			}
    			q := max
    			if e != 0 {
    				q = ldr.SymValue(e)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  4. src/cmd/link/internal/loadelf/ldelf.go

    					l.SymName(s))
    			}
    			l.SetAttrOnList(s, true)
    			textp = append(textp, s)
    			for ss := l.SubSym(s); ss != 0; ss = l.SubSym(ss) {
    				if l.AttrOnList(ss) {
    					return errorf("symbol %s listed multiple times",
    						l.SymName(ss))
    				}
    				l.SetAttrOnList(ss, true)
    				textp = append(textp, ss)
    			}
    		}
    	}
    
    	// load relocations
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:12:12 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/dwarf.go

    func (v compilationUnitByStartPC) Less(i, j int) bool {
    	switch {
    	case len(v[i].Textp) == 0 && len(v[j].Textp) == 0:
    		return v[i].Lib.Pkg < v[j].Lib.Pkg
    	case len(v[i].Textp) != 0 && len(v[j].Textp) == 0:
    		return true
    	case len(v[i].Textp) == 0 && len(v[j].Textp) != 0:
    		return false
    	default:
    		return v[i].PCs[0].Start < v[j].PCs[0].Start
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  6. src/cmd/link/internal/loader/loader.go

    	assignedToUnit := MakeBitmap(l.NSym() + 1)
    
    	// Start off textp with reachable external syms.
    	textp := []Sym{}
    	for _, sym := range extsyms {
    		if !l.attrReachable.Has(sym) {
    			continue
    		}
    		textp = append(textp, sym)
    	}
    
    	// Walk through all text symbols from Go object files and append
    	// them to their corresponding library's textp list.
    	for _, r := range l.objs[goObjStart:] {
    		lib := r.unit.Lib
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:10 UTC 2024
    - 81.5K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/lib.go

    		ldelf := func(ctxt *Link, f *bio.Reader, pkg string, length int64, pn string) {
    			textp, flags, err := loadelf.Load(ctxt.loader, ctxt.Arch, ctxt.IncVersion(), f, pkg, length, pn, ehdr.Flags)
    			if err != nil {
    				Errorf(nil, "%v", err)
    				return
    			}
    			ehdr.Flags = flags
    			ctxt.Textp = append(ctxt.Textp, textp...)
    		}
    		return ldhostobj(ldelf, ctxt.HeadType, f, pkg, length, pn, file)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
  8. src/cmd/link/internal/wasm/asm.go

    				}
    			}
    		}
    	}
    
    	// collect functions with WebAssembly body
    	var buildid []byte
    	fns := make([]*wasmFunc, len(ctxt.Textp))
    	for i, fn := range ctxt.Textp {
    		wfn := new(bytes.Buffer)
    		if ldr.SymName(fn) == "go:buildid" {
    			writeUleb128(wfn, 0) // number of sets of locals
    			writeI32Const(wfn, 0)
    			wfn.WriteByte(0x0b) // end
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:17:48 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/macho.go

    	// referenced symbols. We can strip defined local text and data symbols.
    	// So *FlagS is applied based on symbol type.
    
    	// Add special runtime.text and runtime.etext symbols (which are local).
    	// We've already included this symbol in Textp on darwin if ctxt.DynlinkingGo().
    	// See data.go:/textaddress
    	// NOTE: runtime.text.N symbols (if we split text sections) are not added, though,
    	// so we handle them here.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 43.9K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/deadcode.go

    //
    // If the argument to MethodByName is a compile-time constant, the compiler
    // emits a relocation with the method name. Matching methods are kept in all
    // reachable types.
    //
    // Any unreached text symbols are removed from ctxt.Textp.
    func deadcode(ctxt *Link) {
    	ldr := ctxt.loader
    	d := deadcodePass{ctxt: ctxt, ldr: ldr}
    	d.init()
    	d.flood()
    
    	if ctxt.DynlinkingGo() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 14:52:41 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top