- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for AddRelocs (0.08 sec)
-
src/cmd/link/internal/ld/typelink.go
} sort.Sort(typelinks) tl := ldr.CreateSymForUpdate("runtime.typelink", 0) tl.SetType(sym.STYPELINK) ldr.SetAttrLocal(tl.Sym(), true) tl.SetSize(int64(4 * len(typelinks))) tl.Grow(tl.Size()) relocs := tl.AddRelocs(len(typelinks)) for i, s := range typelinks { r := relocs.At(i) r.SetSym(s.Type) r.SetOff(int32(i * 4)) r.SetSiz(4) r.SetType(objabi.R_ADDROFF) } ptrsize := ctxt.Arch.PtrSize
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 03 21:13:25 UTC 2020 - 1.9K bytes - Viewed (0) -
src/cmd/link/internal/loader/symbolbuilder.go
func (sb *SymbolBuilder) SetRelocAdd(i int, a int64) { sb.relocs[i].SetAdd(a) } // Add n relocations, return a handle to the relocations. func (sb *SymbolBuilder) AddRelocs(n int) Relocs { sb.relocs = append(sb.relocs, make([]goobj.Reloc, n)...) return sb.l.Relocs(sb.symIdx) } // Add a relocation with given type, return its handle and index // (to set other fields).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 15:25:19 UTC 2023 - 13.9K bytes - Viewed (0)