Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for Reloc (0.04 sec)

  1. src/internal/xcoff/file.go

    					return nil, err
    				}
    				reloc.VirtualAddress = rel.Rvaddr
    				reloc.Symbol = idxToSym[int(rel.Rsymndx)]
    				reloc.Type = rel.Rtype
    				reloc.Length = rel.Rsize&0x3F + 1
    				if rel.Rsize&0x80 != 0 {
    					reloc.Signed = true
    				}
    				if rel.Rsize&0x40 != 0 {
    					reloc.InstructionFixed = true
    				}
    			}
    
    			sect.Relocs = append(sect.Relocs, reloc)
    		}
    	}
    
    	return f, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 12 14:42:29 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  2. src/cmd/internal/goobj/objfile.go

    func (r *Reloc) Add() int64   { return int64(binary.LittleEndian.Uint64(r[7:])) }
    func (r *Reloc) Sym() SymRef {
    	return SymRef{binary.LittleEndian.Uint32(r[15:]), binary.LittleEndian.Uint32(r[19:])}
    }
    
    func (r *Reloc) SetOff(x int32)   { binary.LittleEndian.PutUint32(r[:], uint32(x)) }
    func (r *Reloc) SetSiz(x uint8)   { r[4] = x }
    func (r *Reloc) SetType(x uint16) { binary.LittleEndian.PutUint16(r[5:], x) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  3. src/cmd/link/internal/loader/loader_test.go

    			return false
    		}
    	}
    	return true
    }
    
    type addFunc func(l *Loader, s Sym, s2 Sym) Sym
    
    func mkReloc(l *Loader, typ objabi.RelocType, off int32, siz uint8, add int64, sym Sym) Reloc {
    	r := Reloc{&goobj.Reloc{}, l.extReader, l}
    	r.SetType(typ)
    	r.SetOff(off)
    	r.SetSiz(siz)
    	r.SetAdd(add)
    	r.SetSym(sym)
    	return r
    }
    
    func TestAddDataMethods(t *testing.T) {
    	ldr := mkLoader()
    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/arm64/asm.go

    		su.SetRelocAdd(rIdx, int64(ldr.SymGot(targ)))
    		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_CALLARM64:
    		if targType != sym.SDYNIMPORT {
    			// nothing to do, the relocation will be laid out in reloc
    			return true
    		}
    		if target.IsExternal() {
    			// External linker will do this relocation.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 20:09:45 UTC 2024
    - 47K bytes
    - Viewed (0)
  5. src/cmd/link/internal/loong64/asm.go

    	}
    
    	return val, 0, false
    }
    
    func archrelocvariant(*ld.Target, *loader.Loader, loader.Reloc, sym.RelocVariant, loader.Sym, int64, []byte) int64 {
    	return -1
    }
    
    func extreloc(target *ld.Target, ldr *loader.Loader, r loader.Reloc, s loader.Sym) (loader.ExtReloc, bool) {
    	switch r.Type() {
    	case objabi.R_LOONG64_ADDR_HI,
    		objabi.R_LOONG64_ADDR_LO,
    		objabi.R_LOONG64_GOT_HI,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 17:26:07 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. src/cmd/link/internal/ppc64/asm.go

    	if target.IsElf() {
    		return addelfdynrel(target, ldr, syms, s, r, rIdx)
    	} else if target.IsAIX() {
    		return ld.Xcoffadddynrel(target, ldr, syms, s, r, rIdx)
    	}
    	return false
    }
    
    func addelfdynrel(target *ld.Target, ldr *loader.Loader, syms *ld.ArchSyms, s loader.Sym, r loader.Reloc, rIdx int) bool {
    	targ := r.Sym()
    	var targType sym.SymKind
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 20:54:08 UTC 2024
    - 63.7K bytes
    - Viewed (0)
  7. src/cmd/link/internal/riscv64/asm.go

    			return false
    		}
    	}
    
    	// Reread the reloc to incorporate any changes in type above.
    	relocs := ldr.Relocs(s)
    	r = relocs.At(rIdx)
    
    	switch r.Type() {
    	case objabi.R_RISCV_CALL:
    		if targType != sym.SDYNIMPORT {
    			// nothing to do, the relocation will be laid out in reloc
    			return true
    		}
    		if target.IsExternal() {
    			// External linker will do this relocation.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 01 08:06:08 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  8. src/go/internal/gcimporter/ureader.go

    	for i, n := 0, r.Len(); i < n; i++ {
    		// As if r.obj(), but avoiding the Scope.Lookup call,
    		// to avoid eager loading of imports.
    		r.Sync(pkgbits.SyncObject)
    		assert(!r.Bool())
    		r.p.objIdx(r.Reloc(pkgbits.RelocObj))
    		assert(r.Len() == 0)
    	}
    
    	r.Sync(pkgbits.SyncEOF)
    
    	for _, fn := range pr.laterFns {
    		fn()
    	}
    
    	for _, iface := range pr.ifaces {
    		iface.Complete()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  9. src/cmd/link/internal/loader/loader.go

    type Reloc struct {
    	*goobj.Reloc
    	r *oReader
    	l *Loader
    }
    
    func (rel Reloc) Type() objabi.RelocType     { return objabi.RelocType(rel.Reloc.Type()) &^ objabi.R_WEAK }
    func (rel Reloc) Weak() bool                 { return objabi.RelocType(rel.Reloc.Type())&objabi.R_WEAK != 0 }
    func (rel Reloc) SetType(t objabi.RelocType) { rel.Reloc.SetType(uint16(t)) }
    func (rel Reloc) Sym() Sym                   { return rel.l.resolve(rel.r, rel.Reloc.Sym()) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:10 UTC 2024
    - 81.5K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/objfile.go

    		fmt.Printf("unindexed symbol reference: %v\n", s)
    		panic("unindexed symbol reference")
    	}
    	return goobj.SymRef{PkgIdx: uint32(s.PkgIdx), SymIdx: uint32(s.SymIdx)}
    }
    
    func (w *writer) Reloc(r *Reloc) {
    	o := &w.tmpReloc
    	o.SetOff(r.Off)
    	o.SetSiz(r.Siz)
    	o.SetType(uint16(r.Type))
    	o.SetAdd(r.Add)
    	o.SetSym(makeSymRef(r.Sym))
    	o.Write(w.Writer)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24K bytes
    - Viewed (0)
Back to top