Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 269 for relocs (0.16 sec)

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

    			// complete. We do this via Addaddrplus, which creates
    			// a new R_ADDR relocation which will be resolved in
    			// the 'reloc' phase.
    			//
    			// These synthetic static R_ADDR relocs must be skipped
    			// now, or else we will be caught in an infinite loop
    			// of generating synthetic relocs for our synthetic
    			// relocs.
    			//
    			// Furthermore, the rela sections contain dynamic
    			// relocations with R_ADDR relocations on
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 23 05:58:20 UTC 2023
    - 21K bytes
    - Viewed (0)
  2. src/cmd/link/internal/loadpe/seh.go

    	rels := ldr.Relocs(pdata)
    	if rels.Count()%3 != 0 {
    		return fmt.Errorf(".pdata symbol %q has invalid relocation count", ldr.SymName(pdata))
    	}
    	for i := 0; i < rels.Count(); i += 3 {
    		xrel := rels.At(i + 2)
    		handler := findHandlerInXDataAMD64(ldr, xrel.Sym(), xrel.Add())
    		if handler != 0 {
    			sb := ldr.MakeSymbolUpdater(rels.At(i).Sym())
    			r, _ := sb.AddRel(objabi.R_KEEP)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 22 16:20:28 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/stackcheck.go

    		return maxHeight, edges
    	}
    
    	// This function is nosplit, so it adjusts SP without a split
    	// check.
    	//
    	// Walk through SP adjustments in function, consuming relocs
    	// and following calls.
    	maxLocalHeight := 0
    	relocs, ri := ldr.Relocs(sym), 0
    	pcsp := obj.NewPCIter(uint32(ctxt.Arch.MinLC))
    	for pcsp.Init(ldr.Data(ldr.Pcsp(sym))); !pcsp.Done; pcsp.Next() {
    		// pcsp.value is in effect for [pcsp.pc, pcsp.nextpc).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 24 16:49:08 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/dwarf.go

    				if d.ldr.IsDict(idx) {
    					// This is a dictionary, make sure that all types referenced by this dictionary are reachable
    					relocs := d.ldr.Relocs(idx)
    					for i := 0; i < relocs.Count(); i++ {
    						reloc := relocs.At(i)
    						if reloc.Type() == objabi.R_USEIFACE {
    							d.defgotype(reloc.Sym())
    						}
    					}
    				}
    			}
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/pe.go

    			// to stream out.
    			relocs := ldr.Relocs(s)
    			for ri := 0; ri < relocs.Count(); ri++ {
    				r := relocs.At(ri)
    				rr, ok := extreloc(ctxt, ldr, s, r)
    				if !ok {
    					continue
    				}
    				if rr.Xsym == 0 {
    					ctxt.Errorf(s, "missing xsym in relocation")
    					continue
    				}
    				if ldr.SymDynid(rr.Xsym) < 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:01:27 UTC 2023
    - 48.8K bytes
    - Viewed (0)
  6. src/cmd/link/internal/ld/go.go

    	if ctxt.LinkMode == LinkExternal {
    		for _, s := range ctxt.Textp {
    			if ctxt.loader.AttrSpecial(s) || ctxt.loader.AttrSubSymbol(s) {
    				continue
    			}
    			relocs := ctxt.loader.Relocs(s)
    			for i := 0; i < relocs.Count(); i++ {
    				if rs := relocs.At(i).Sym(); rs != 0 {
    					if ctxt.loader.SymType(rs) == sym.Sxxx && !ctxt.loader.AttrLocal(rs) {
    						// sanity check
    						if len(ctxt.loader.Data(rs)) != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 16:48:30 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/data.go

    	// A trampoline does not need any dependent trampolines.
    	if thearch.Trampoline == nil || isTramp {
    		return 0
    	}
    
    	n := uint64(0)
    	relocs := ldr.Relocs(s)
    	for ri := 0; ri < relocs.Count(); ri++ {
    		r := relocs.At(ri)
    		if r.Type().IsDirectCallOrJump() {
    			n++
    		}
    	}
    
    	switch {
    	case ctxt.IsARM():
    		return n * 20 // Trampolines in ARM range from 3 to 5 instructions.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 12 15:10:50 UTC 2024
    - 100.5K bytes
    - Viewed (1)
  8. src/debug/macho/file.go

    	sh.ReaderAt = sh.sr
    
    	if sh.Nreloc > 0 {
    		reldat, err := saferio.ReadDataAt(r, uint64(sh.Nreloc)*8, int64(sh.Reloff))
    		if err != nil {
    			return err
    		}
    		b := bytes.NewReader(reldat)
    
    		bo := f.ByteOrder
    
    		sh.Relocs = make([]Reloc, sh.Nreloc)
    		for i := range sh.Relocs {
    			rel := &sh.Relocs[i]
    
    			var ri relocInfo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssagen/pgen.go

    	}
    	globalMapInitLsyms[s] = struct{}{}
    }
    
    // weakenGlobalMapInitRelocs walks through all of the relocations on a
    // given a package init function "fn" and looks for relocs that target
    // outlined global map initializer functions; if it finds any such
    // relocs, it flags them as R_WEAK.
    func weakenGlobalMapInitRelocs(fn *ir.Func) {
    	if globalMapInitLsyms == nil {
    		return
    	}
    	for i := range fn.LSym.R {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/seh.go

    			off = xdata.Size()
    			uwcache[name] = off
    			xdata.AddBytes(ldr.Data(uw))
    			// The SEH unwind data can contain relocations,
    			// make sure those are copied over.
    			rels := ldr.Relocs(uw)
    			for i := 0; i < rels.Count(); i++ {
    				r := rels.At(i)
    				rel, _ := xdata.AddRel(r.Type())
    				rel.SetOff(int32(off) + r.Off())
    				rel.SetSiz(r.Siz())
    				rel.SetSym(r.Sym())
    				rel.SetAdd(r.Add())
    			}
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:01:27 UTC 2023
    - 2K bytes
    - Viewed (0)
Back to top