- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 124 for relocs (0.23 sec)
-
src/cmd/link/internal/wasm/asm.go
var hostImports []*wasmFunc hostImportMap := make(map[loader.Sym]int64) for _, fn := range ctxt.Textp { relocs := ldr.Relocs(fn) for ri := 0; ri < relocs.Count(); ri++ { r := relocs.At(ri) if r.Type() == objabi.R_WASMIMPORT { if lsym, ok := ldr.WasmImportSym(fn); ok { wi := readWasmImport(ldr, lsym) hostImportMap[fn] = int64(len(hostImports))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 16:17:48 UTC 2024 - 21.9K bytes - Viewed (0) -
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) -
src/cmd/link/internal/amd64/asm.go
// complete. We do this via Addaddrplus, which creates // a new R_ADDR relocation which will be resolved in // the 'reloc' phase. // // These synthetic static R_ADDR relocs must be skipped // now, or else we will be caught in an infinite loop // of generating synthetic relocs for our synthetic // relocs. // // Furthermore, the rela sections contain dynamic // relocations with R_ADDR relocations on
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 23 05:58:20 UTC 2023 - 21K bytes - Viewed (0) -
src/cmd/link/internal/ld/stackcheck.go
return maxHeight, edges } // This function is nosplit, so it adjusts SP without a split // check. // // Walk through SP adjustments in function, consuming relocs // and following calls. maxLocalHeight := 0 relocs, ri := ldr.Relocs(sym), 0 pcsp := obj.NewPCIter(uint32(ctxt.Arch.MinLC)) for pcsp.Init(ldr.Data(ldr.Pcsp(sym))); !pcsp.Done; pcsp.Next() { // pcsp.value is in effect for [pcsp.pc, pcsp.nextpc).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 24 16:49:08 UTC 2023 - 11.9K bytes - Viewed (0) -
src/cmd/link/internal/ld/pe.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 19:01:27 UTC 2023 - 48.8K bytes - Viewed (0) -
src/cmd/link/internal/ld/go.go
if ctxt.LinkMode == LinkExternal { for _, s := range ctxt.Textp { if ctxt.loader.AttrSpecial(s) || ctxt.loader.AttrSubSymbol(s) { continue } relocs := ctxt.loader.Relocs(s) for i := 0; i < relocs.Count(); i++ { if rs := relocs.At(i).Sym(); rs != 0 { if ctxt.loader.SymType(rs) == sym.Sxxx && !ctxt.loader.AttrLocal(rs) { // sanity check if len(ctxt.loader.Data(rs)) != 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 22 16:48:30 UTC 2023 - 11.2K bytes - Viewed (0) -
src/debug/macho/file.go
sh.ReaderAt = sh.sr if sh.Nreloc > 0 { reldat, err := saferio.ReadDataAt(r, uint64(sh.Nreloc)*8, int64(sh.Reloff)) if err != nil { return err } b := bytes.NewReader(reldat) bo := f.ByteOrder sh.Relocs = make([]Reloc, sh.Nreloc) for i := range sh.Relocs { rel := &sh.Relocs[i] var ri relocInfo
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 17.9K bytes - Viewed (0) -
src/cmd/compile/internal/ssagen/pgen.go
} globalMapInitLsyms[s] = struct{}{} } // weakenGlobalMapInitRelocs walks through all of the relocations on a // given a package init function "fn" and looks for relocs that target // outlined global map initializer functions; if it finds any such // relocs, it flags them as R_WEAK. func weakenGlobalMapInitRelocs(fn *ir.Func) { if globalMapInitLsyms == nil { return } for i := range fn.LSym.R {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 15:44:14 UTC 2024 - 13.1K bytes - Viewed (0) -
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) -
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)