Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 295 for relocs (1.27 sec)

  1. 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)
  2. 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)
  3. src/cmd/link/internal/x86/asm.go

    		return true
    	}
    
    	// Handle references to ELF symbols from our own object files.
    	if targType != sym.SDYNIMPORT {
    		return true
    	}
    
    	// Reread the reloc to incorporate any changes in type above.
    	relocs := ldr.Relocs(s)
    	r = relocs.At(rIdx)
    
    	switch r.Type() {
    	case objabi.R_CALL,
    		objabi.R_PCREL:
    		if target.IsExternal() {
    			// External linker will do this relocation.
    			return true
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 23 05:58:20 UTC 2023
    - 13.6K bytes
    - Viewed (0)
  4. src/cmd/link/internal/s390x/asm.go

    	initfunc.AddSymRef(ctxt.Arch, ctxt.Moduledata, 6, objabi.R_PCREL, 4)
    	r1 := initfunc.Relocs()
    	ldr.SetRelocVariant(initfunc.Sym(), r1.Count()-1, sym.RV_390_DBL)
    
    	// jg <runtime.addmoduledata[@plt]>
    	initfunc.AddUint8(0xc0)
    	initfunc.AddUint8(0xf4)
    	initfunc.AddSymRef(ctxt.Arch, addmoduledata, 6, objabi.R_CALL, 4)
    	r2 := initfunc.Relocs()
    	ldr.SetRelocVariant(initfunc.Sym(), r2.Count()-1, sym.RV_390_DBL)
    
    	// undef (for debugging)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 23 05:58:20 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  5. src/cmd/link/internal/loadpe/ldpe.go

    	arch := importSymsState.arch
    	keeprelocneeded := make(map[loader.Sym]loader.Sym)
    	for _, s := range importSymsState.secSyms {
    		isText := ldr.SymType(s) == sym.STEXT
    		relocs := ldr.Relocs(s)
    		for i := 0; i < relocs.Count(); i++ {
    			r := relocs.At(i)
    			rs := r.Sym()
    			if ldr.SymType(rs) == sym.SDYNIMPORT {
    				// Tag the symbol for later stub generation.
    				ldr.SetPlt(rs, CreateImportStubPltToken)
    				continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 20:26:46 UTC 2023
    - 26.5K bytes
    - Viewed (0)
  6. src/cmd/internal/objfile/objfile.go

    	Addr   uint64  // virtual address of symbol
    	Size   int64   // size in bytes
    	Code   rune    // nm code (T for text, D for data, and so on)
    	Type   string  // XXX?
    	Relocs []Reloc // in increasing Addr order
    }
    
    type Reloc struct {
    	Addr     uint64 // Address of first byte that reloc applies to.
    	Size     uint64 // Number of bytes
    	Stringer RelocStringer
    }
    
    type RelocStringer interface {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 24 16:01:55 UTC 2021
    - 4.2K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/xcoff.go

    			relocs := ldr.Relocs(s)
    			sorted := make([]int, relocs.Count())
    			for i := 0; i < relocs.Count(); i++ {
    				sorted[i] = i
    			}
    			sort.Slice(sorted, func(i, j int) bool {
    				return relocs.At(sorted[i]).Off() < relocs.At(sorted[j]).Off()
    			})
    
    			for _, ri := range sorted {
    				r := relocs.At(ri)
    				rr, ok := extreloc(ctxt, ldr, s, r)
    				if !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 19:58:23 UTC 2023
    - 51.8K bytes
    - Viewed (0)
  8. src/cmd/link/internal/loadxcoff/ldxcoff.go

    		// TODO(aix): Dwarf section relocation if needed
    		if sect.Type != xcoff.STYP_TEXT && sect.Type != xcoff.STYP_DATA {
    			continue
    		}
    		sb := l.MakeSymbolUpdater(sect.sym)
    		for _, rx := range sect.Relocs {
    			rSym := l.LookupOrCreateCgoExport(rx.Symbol.Name, 0)
    			if uint64(int32(rx.VirtualAddress)) != rx.VirtualAddress {
    				return errorf("virtual address of a relocation is too big: 0x%x", rx.VirtualAddress)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/pcln.go

    func computeDeferReturn(ctxt *Link, deferReturnSym, s loader.Sym) uint32 {
    	ldr := ctxt.loader
    	target := ctxt.Target
    	deferreturn := uint32(0)
    	lastWasmAddr := uint32(0)
    
    	relocs := ldr.Relocs(s)
    	for ri := 0; ri < relocs.Count(); ri++ {
    		r := relocs.At(ri)
    		if target.IsWasm() && r.Type() == objabi.R_ADDR {
    			// wasm/ssa.go generates an ARESUMEPOINT just
    			// before the deferreturn call. The "PC" of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/macho.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 {
    				ldr.Errorf(s, "missing xsym in relocation")
    				continue
    			}
    			if !ldr.AttrReachable(rr.Xsym) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 43.9K bytes
    - Viewed (0)
Back to top