Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for NReloc (0.14 sec)

  1. src/cmd/internal/obj/objfile.go

    	}
    	// TODO: hashedrefs unused/unsupported for now
    
    	// Reloc indexes
    	h.Offsets[goobj.BlkRelocIdx] = w.Offset()
    	nreloc := uint32(0)
    	lists := [][]*LSym{ctxt.defs, ctxt.hashed64defs, ctxt.hasheddefs, ctxt.nonpkgdefs}
    	for _, list := range lists {
    		for _, s := range list {
    			w.Uint32(nreloc)
    			nreloc += uint32(len(s.R))
    		}
    	}
    	w.Uint32(nreloc)
    
    	// Symbol Info indexes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24K bytes
    - Viewed (0)
  2. src/cmd/internal/goobj/objfile.go

    }
    
    // Reloc returns a pointer to the j-th relocation of the i-th symbol.
    func (r *Reader) Reloc(i uint32, j int) *Reloc {
    	off := r.RelocOff(i, j)
    	return (*Reloc)(unsafe.Pointer(&r.b[off]))
    }
    
    // Relocs returns a pointer to the relocations of the i-th symbol.
    func (r *Reader) Relocs(i uint32) []Reloc {
    	off := r.RelocOff(i, 0)
    	n := r.NReloc(i)
    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/ld/macho.go

    )
    
    type MachoHdr struct {
    	cpu    uint32
    	subcpu uint32
    }
    
    type MachoSect struct {
    	name    string
    	segname string
    	addr    uint64
    	size    uint64
    	off     uint32
    	align   uint32
    	reloc   uint32
    	nreloc  uint32
    	flag    uint32
    	res1    uint32
    	res2    uint32
    }
    
    type MachoSeg struct {
    	name       string
    	vsize      uint64
    	vaddr      uint64
    	fileoffset uint64
    	filesize   uint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 43.9K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/macho_combine_dwarf.go

    		if sect.Seg != "__DWARF" {
    			continue
    		}
    
    		// As of writing, there are no relocations in dsymutil's output
    		// so there's no point in worrying about them. Bail out if that
    		// changes.
    		if sect.Nreloc != 0 {
    			return nil, nil, nil
    		}
    
    		data, err := sect.Data()
    		if err != nil {
    			return nil, nil, err
    		}
    
    		compressed, contents, err := machoCompressSection(data)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. src/cmd/compile/internal/ssagen/pgen.go

    			continue
    		}
    		if _, ok := globalMapInitLsyms[tgt]; !ok {
    			continue
    		}
    		if base.Debug.WrapGlobalMapDbg > 1 {
    			fmt.Fprintf(os.Stderr, "=-= weakify fn %v reloc %d %+v\n", fn, i,
    				fn.LSym.R[i])
    		}
    		// set the R_WEAK bit, leave rest of reloc type intact
    		fn.LSym.R[i].Type |= objabi.R_WEAK
    	}
    }
    
    // StackOffset returns the stack location of a LocalSlot relative to the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  8. src/cmd/internal/obj/x86/asm6.go

    	var rel obj.Reloc
    
    	v := vaddr(ctxt, p, a, &rel)
    	if rel.Siz != 0 {
    		if rel.Siz != 4 {
    			ctxt.Diag("bad reloc")
    		}
    		r := obj.Addrel(cursym)
    		*r = rel
    		r.Off = int32(p.Pc + int64(ab.Len()))
    	}
    
    	ab.PutInt32(int32(v))
    }
    
    func vaddr(ctxt *obj.Link, p *obj.Prog, a *obj.Addr, r *obj.Reloc) int64 {
    	if r != nil {
    		*r = obj.Reloc{}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 146.9K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/data.go

    // linking is in effect, it may not be  possible to completely resolve
    // the address/offset for a symbol, in which case the goal is to lay
    // the groundwork for turning a given relocation into an external reloc
    // (to be applied by the external linker). For more on how relocations
    // work in general, see
    //
    //	"Linkers and Loaders", by John R. Levine (Morgan Kaufmann, 1999), ch. 7
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 12 15:10:50 UTC 2024
    - 100.5K bytes
    - Viewed (1)
  10. src/cmd/link/internal/ld/deadcode.go

    				// plugin. See #62430 for more details.
    				if d.ctxt.canUsePlugins && r.Type().IsDirectCall() {
    					convertWeakToStrong = true
    				}
    				if !convertWeakToStrong {
    					// skip this reloc
    					continue
    				}
    			}
    			t := r.Type()
    			switch t {
    			case objabi.R_METHODOFF:
    				if i+2 >= relocs.Count() {
    					panic("expect three consecutive R_METHODOFF relocs")
    				}
    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