Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 269 for relocs (0.14 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/debug/macho/file_test.go

    			fn := len(f.Sections)
    			if tn != fn {
    				t.Errorf("open %s: len(Sections) = %d, want %d", tt.file, fn, tn)
    			}
    		}
    
    		if tt.relocations != nil {
    			for i, sh := range f.Sections {
    				have := sh.Relocs
    				want := tt.relocations[sh.Name]
    				if !reflect.DeepEqual(have, want) {
    					t.Errorf("open %s, relocations in section %d (%s):\n\thave %#v\n\twant %#v\n", tt.file, i, sh.Name, have, want)
    				}
    			}
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 12.4K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/elf.go

    			continue
    		}
    		if ldr.SymValue(s) >= int64(eaddr) {
    			break
    		}
    
    		// Compute external relocations on the go, and pass to
    		// ELF.Reloc1 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")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 13:29:54 UTC 2024
    - 63.6K bytes
    - Viewed (0)
Back to top