Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 33 for Reloc (0.05 sec)

  1. src/internal/xcoff/xcoff.go

    	Rsymndx uint32 // Index into symbol table
    	Rsize   uint8  // Sign and reloc bit len
    	Rtype   uint8  // Toc relocation type
    }
    
    type Reloc64 struct {
    	Rvaddr  uint64 // (virtual) address of reference
    	Rsymndx uint32 // Index into symbol table
    	Rsize   uint8  // Sign and reloc bit len
    	Rtype   uint8  // Toc relocation type
    }
    
    const (
    	R_POS = 0x00 // A(sym) Positive Relocation
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 08 20:36:37 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  2. 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)
  3. src/cmd/link/internal/ld/pe.go

    					continue
    				}
    				if ldr.SymDynid(rr.Xsym) < 0 {
    					ctxt.Errorf(s, "reloc %d to non-coff symbol %s (outer=%s) %d", r.Type(), ldr.SymName(r.Sym()), ldr.SymName(rr.Xsym), ldr.SymType(r.Sym()))
    				}
    				if !thearch.PEreloc1(ctxt.Arch, ctxt.Out, ldr, s, rr, int64(uint64(ldr.SymValue(s)+int64(r.Off()))-base)) {
    					ctxt.Errorf(s, "unsupported obj reloc %v/%d to %s", r.Type(), r.Siz(), ldr.SymName(r.Sym()))
    				}
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:01:27 UTC 2023
    - 48.8K bytes
    - Viewed (0)
  4. 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)
  5. src/cmd/internal/objfile/disasm.go

    		})
    		tw.Flush()
    	}
    	bw.Flush()
    }
    
    // Decode disassembles the text segment range [start, end), calling f for each instruction.
    func (d *Disasm) Decode(start, end uint64, relocs []Reloc, gnuAsm bool, f func(pc, size uint64, file string, line int, text string)) {
    	if start < d.textStart {
    		start = d.textStart
    	}
    	if end > d.textEnd {
    		end = d.textEnd
    	}
    	code := d.text[:end-d.textStart]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. src/cmd/link/internal/wasm/asm.go

    				case objabi.R_CALL:
    					writeSleb128(wfn, int64(len(hostImports))+ldr.SymValue(rs)>>16-funcValueOffset)
    				case objabi.R_WASMIMPORT:
    					writeSleb128(wfn, hostImportMap[rs])
    				default:
    					ldr.Errorf(fn, "bad reloc type %d (%s)", r.Type(), sym.RelocName(ctxt.Arch, r.Type()))
    					continue
    				}
    			}
    			wfn.Write(P[off:])
    		}
    
    		typ := uint32(0)
    		if sig, ok := wasmFuncTypes[ldr.SymName(fn)]; ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:17:48 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  9. src/cmd/link/internal/loadmacho/ldmacho.go

    					// relocation is referencing, we subtract the vaddr of the start of the referenced
    					// section found in the original object file.
    					//
    					// [For future reference, see Darwin's /usr/include/mach-o/x86_64/reloc.h]
    					secaddr := c.seg.sect[rel.symnum-1].addr
    					rAdd = int64(uint64(int64(int32(e.Uint32(p[rOff:])))+int64(rOff)+4) - secaddr)
    				} else {
    					rAdd = int64(int32(e.Uint32(p[rOff:])))
    				}
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 12 18:45:57 UTC 2022
    - 19.1K bytes
    - Viewed (0)
  10. src/cmd/link/internal/loadpe/ldpe.go

    			if err != nil {
    				return nil, err
    			}
    			if gosym == 0 {
    				name, err := pesym.FullName(f.StringTable)
    				if err != nil {
    					name = string(pesym.Name[:])
    				}
    				return nil, fmt.Errorf("reloc of invalid sym %s idx=%d type=%d", name, r.SymbolTableIndex, pesym.Type)
    			}
    
    			rSym := gosym
    			rSize := uint8(4)
    			rOff := int32(r.VirtualAddress)
    			var rAdd int64
    			var rType objabi.RelocType
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 20:26:46 UTC 2023
    - 26.5K bytes
    - Viewed (0)
Back to top