Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for Reloc (0.04 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/cmd/link/internal/ld/macho.go

    				continue
    			}
    			if !ldr.AttrReachable(rr.Xsym) {
    				ldr.Errorf(s, "unreachable reloc %d (%s) target %v", r.Type(), sym.RelocName(ctxt.Arch, r.Type()), ldr.SymName(rr.Xsym))
    			}
    			if !thearch.Machoreloc1(ctxt.Arch, out, ldr, s, rr, int64(uint64(ldr.SymValue(s)+int64(r.Off()))-sect.Vaddr)) {
    				ldr.Errorf(s, "unsupported obj reloc %d (%s)/%d to %s", r.Type(), sym.RelocName(ctxt.Arch, r.Type()), r.Siz(), ldr.SymName(r.Sym()))
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 43.9K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. src/cmd/internal/obj/sym.go

    	fninfo := fsym.Func()
    	pc := &fninfo.Pcln
    	if flag&traverseAux == 0 {
    		// NB: should it become necessary to walk aux sym reloc references
    		// without walking the aux syms themselves, this can be changed.
    		panic("should not be here")
    	}
    	for _, d := range pc.Funcdata {
    		if d != nil {
    			fn(fsym, d)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 14:41:10 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  8. src/cmd/internal/obj/link.go

    // It represents Go symbols in a flat pkg+"."+name namespace.
    type LSym struct {
    	Name string
    	Type objabi.SymKind
    	Attribute
    
    	Size   int64
    	Gotype *LSym
    	P      []byte
    	R      []Reloc
    
    	Extra *interface{} // *FuncInfo, *VarInfo, *FileInfo, or *TypeInfo, if present
    
    	Pkg    string
    	PkgIdx int32
    	SymIdx int32
    }
    
    // A FuncInfo contains extra fields for STEXT symbols.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  9. src/cmd/link/link_test.go

    	scanner := bufio.NewScanner(bytes.NewReader(out))
    	for scanner.Scan() {
    		line := scanner.Text()
    		if strings.Contains(line, "R_TLS_LE") {
    			t.Errorf("objdump output contains unexpected R_TLS_LE reloc: %s", line)
    		}
    	}
    }
    
    const testStrictDupGoSrc = `
    package main
    func f()
    func main() { f() }
    `
    
    const testStrictDupAsmSrc1 = `
    #include "textflag.h"
    TEXT	·f(SB), NOSPLIT|DUPOK, $0-0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:02 UTC 2024
    - 43.5K bytes
    - Viewed (0)
Back to top