- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for SetSym (0.16 sec)
-
src/cmd/link/internal/s390x/asm.go
ldr.SetRelocVariant(s, rIdx, sym.RV_390_DBL) r.SetSym(syms.GOT) su.SetRelocAdd(rIdx, r.Add()+int64(r.Siz())) return true case objabi.ElfRelocOffset + objabi.RelocType(elf.R_390_GOTENT): ld.AddGotSym(target, ldr, syms, targ, uint32(elf.R_390_GLOB_DAT)) su := ldr.MakeSymbolUpdater(s) su.SetRelocType(rIdx, objabi.R_PCREL) ldr.SetRelocVariant(s, rIdx, sym.RV_390_DBL) r.SetSym(syms.GOT)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 23 05:58:20 UTC 2023 - 13.7K bytes - Viewed (0) -
src/cmd/link/internal/arm/asm.go
o(0xe08f0000) o(0xeafffffe) rel, _ := initfunc.AddRel(objabi.R_CALLARM) rel.SetOff(8) rel.SetSiz(4) rel.SetSym(addmoduledata) rel.SetAdd(0xeafffffe) // vomit o(0x00000000) rel2, _ := initfunc.AddRel(objabi.R_PCREL) rel2.SetOff(12) rel2.SetSiz(4) rel2.SetSym(ctxt.Moduledata) rel2.SetAdd(4) } // Preserve highest 8 bits of a, and do addition to lower 24-bit
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 23 05:58:20 UTC 2023 - 22.9K bytes - Viewed (0) -
src/cmd/link/internal/loader/loader_test.go
// Add some relocations to the new symbols. r1, _ := sb1.AddRel(objabi.R_ADDR) r1.SetOff(0) r1.SetSiz(1) r1.SetSym(ts1) r2, _ := sb1.AddRel(objabi.R_CALL) r2.SetOff(3) r2.SetSiz(8) r2.SetSym(ts2) r3, _ := sb2.AddRel(objabi.R_USETYPE) r3.SetOff(7) r3.SetSiz(1) r3.SetSym(ts3) // Add some data to the symbols. d1 := []byte{1, 2, 3} d2 := []byte{4, 5, 6, 7} sb1.AddBytes(d1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 19:08:09 UTC 2024 - 12K bytes - Viewed (0) -
src/cmd/internal/goobj/objfile.go
func (r *Reloc) SetSym(x SymRef) { binary.LittleEndian.PutUint32(r[15:], x.PkgIdx) binary.LittleEndian.PutUint32(r[19:], x.SymIdx) } func (r *Reloc) Set(off int32, size uint8, typ uint16, add int64, sym SymRef) { r.SetOff(off) r.SetSiz(size) r.SetType(typ) r.SetAdd(add) r.SetSym(sym) } func (r *Reloc) Write(w *Writer) { w.Bytes(r[:]) }
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/arm64/asm.go
o(0x91000000) rel, _ := initfunc.AddRel(objabi.R_ADDRARM64) rel.SetOff(0) rel.SetSiz(8) rel.SetSym(ctxt.Moduledata) // 8: 14000000 b 0 <runtime.addmoduledata> // 8: R_AARCH64_CALL26 runtime.addmoduledata o(0x14000000) rel2, _ := initfunc.AddRel(objabi.R_CALLARM64) rel2.SetOff(8) rel2.SetSiz(4) rel2.SetSym(addmoduledata) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 30 20:09:45 UTC 2024 - 47K bytes - Viewed (0) -
src/cmd/link/internal/loader/symbolbuilder.go
sb.relocs[i].SetType(uint16(t)) } // SetRelocSym sets the target sym of the 'i'-th relocation on this sym to 's' func (sb *SymbolBuilder) SetRelocSym(i int, tgt Sym) { sb.relocs[i].SetSym(goobj.SymRef{PkgIdx: 0, SymIdx: uint32(tgt)}) } // SetRelocAdd sets the addend of the 'i'-th relocation on this sym to 'a' func (sb *SymbolBuilder) SetRelocAdd(i int, a int64) { sb.relocs[i].SetAdd(a) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 15:25:19 UTC 2023 - 13.9K bytes - Viewed (0) -
src/cmd/internal/obj/objfile.go
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) } func (w *writer) aux1(typ uint8, rs *LSym) { o := &w.tmpAux o.SetType(typ) o.SetSym(makeSymRef(rs)) o.Write(w.Writer) } func (w *writer) Aux(s *LSym) { if s.Gotype != nil { w.aux1(goobj.AuxGotype, s.Gotype)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 24K bytes - Viewed (0) -
src/cmd/link/internal/riscv64/asm.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 01 08:06:08 UTC 2024 - 22.8K bytes - Viewed (0) -
src/cmd/link/internal/loadpe/ldpe.go
// the final binary, in which case the relocation // target symbol won't be reachable. rType |= objabi.R_WEAK } rel, _ := sb.AddRel(rType) rel.SetOff(rOff) rel.SetSiz(rSize) rel.SetSym(rSym) rel.SetAdd(rAdd) } sb.SortRelocs() } // enter sub-symbols into symbol table. for i, numaux := 0, 0; i < len(f.COFFSymbols); i += numaux + 1 { pesym := &f.COFFSymbols[i]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 18 20:26:46 UTC 2023 - 26.5K bytes - Viewed (0) -
src/cmd/link/internal/loadmacho/ldmacho.go
return errorf("invalid relocation: symbol reference out of range") } rSym = symtab.sym[rel.symnum].sym } r, _ := sb.AddRel(rType) r.SetOff(rOff) r.SetSiz(rSize) r.SetSym(rSym) r.SetAdd(rAdd) rAdd = 0 // clear rAdd for next iteration } sb.SortRelocs() } return textp, nil } func cstring(x []byte) string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 12 18:45:57 UTC 2022 - 19.1K bytes - Viewed (0)