- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 22 for SymValue (0.12 sec)
-
src/cmd/link/internal/mips64/asm.go
case objabi.R_ADDRMIPS, objabi.R_ADDRMIPSU: t := ldr.SymValue(rs) + r.Add() if r.Type() == objabi.R_ADDRMIPS { return int64(val&0xffff0000 | t&0xffff), noExtReloc, isOk } return int64(val&0xffff0000 | ((t+1<<15)>>16)&0xffff), noExtReloc, isOk case objabi.R_ADDRMIPSTLS: // thread pointer is at 0x7000 offset from the start of TLS data area t := ldr.SymValue(rs) + r.Add() - 0x7000 if target.IsOpenbsd() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 23 05:58:20 UTC 2023 - 11K bytes - Viewed (0) -
src/cmd/link/internal/loader/loader_test.go
} // Test get/set symbol value. toTest := []Sym{ts2, es3} for i, s := range toTest { if v := ldr.SymValue(s); v != 0 { t.Errorf("ldr.Value(%d): expected 0 got %d\n", s, v) } nv := int64(i + 101) ldr.SetSymValue(s, nv) if v := ldr.SymValue(s); v != nv { t.Errorf("ldr.SetValue(%d,%d): expected %d got %d\n", s, nv, nv, v) } } // Check/set alignment
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/link/internal/wasm/asm.go
} wfn.Write(P[off:r.Off()]) off = r.Off() rs := r.Sym() switch r.Type() { case objabi.R_ADDR: writeSleb128(wfn, ldr.SymValue(rs)+r.Add()) case objabi.R_CALL: writeSleb128(wfn, int64(len(hostImports))+ldr.SymValue(rs)>>16-funcValueOffset) case objabi.R_WASMIMPORT: writeSleb128(wfn, hostImportMap[rs]) default:
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/link/internal/loadmacho/ldmacho.go
for s1 := bld.Sub(); s1 != 0; s1 = l.SubSym(s1) { s1Bld := l.MakeSymbolUpdater(s1) if sub := l.SubSym(s1); sub != 0 { s1Bld.SetSize(l.SymValue(sub) - l.SymValue(s1)) } else { dlen := int64(len(l.Data(s))) s1Bld.SetSize(l.SymValue(s) + dlen - l.SymValue(s1)) } } } if bld.Type() == sym.STEXT { if bld.OnList() { return errorf("symbol %s listed multiple times", bld.Name())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 12 18:45:57 UTC 2022 - 19.1K bytes - Viewed (0) -
src/cmd/link/internal/loader/symbolbuilder.go
func (sb *SymbolBuilder) Size() int64 { return sb.size } func (sb *SymbolBuilder) Data() []byte { return sb.data } func (sb *SymbolBuilder) Value() int64 { return sb.l.SymValue(sb.symIdx) } func (sb *SymbolBuilder) Align() int32 { return sb.l.SymAlign(sb.symIdx) } func (sb *SymbolBuilder) Localentry() uint8 { return sb.l.SymLocalentry(sb.symIdx) }
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/link/internal/ld/macho.go
for i, s := range syms { if !ldr.AttrReachable(s) { continue } if uint64(ldr.SymValue(s)) >= sect.Vaddr { syms = syms[i:] break } } eaddr := sect.Vaddr + sect.Length for _, s := range syms { if !ldr.AttrReachable(s) { continue } if ldr.SymValue(s) >= int64(eaddr) { break }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:32:53 UTC 2024 - 43.9K bytes - Viewed (0) -
src/cmd/link/internal/ld/symtab.go
out.Write8(uint8(other)) out.Write16(uint16(shndx)) symSize += ELF32SYMSIZE } } func putelfsym(ctxt *Link, x loader.Sym, typ elf.SymType, curbind elf.SymBind) { ldr := ctxt.loader addr := ldr.SymValue(x) size := ldr.SymSize(x) xo := x if ldr.OuterSym(x) != 0 { xo = ldr.OuterSym(x) } xot := ldr.SymType(xo) xosect := ldr.SymSect(xo) var elfshnum elf.SectionIndex
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 13 16:29:40 UTC 2023 - 29.2K bytes - Viewed (0) -
src/cmd/link/internal/s390x/asm.go
return t case sym.RV_NONE: return t case sym.RV_390_DBL: if t&1 != 0 { ldr.Errorf(s, "%s+%v is not 2-byte aligned", ldr.SymName(r.Sym()), ldr.SymValue(r.Sym())) } return t >> 1 } } func addpltsym(target *ld.Target, ldr *loader.Loader, syms *ld.ArchSyms, s loader.Sym) { if ldr.SymPlt(s) >= 0 { return }
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/loader/loader.go
func (l *Loader) growValues(reqLen int) { curLen := len(l.values) if reqLen > curLen { l.values = append(l.values, make([]int64, reqLen+1-curLen)...) } } // SymValue returns the value of the i-th symbol. i is global index. func (l *Loader) SymValue(i Sym) int64 { return l.values[i] } // SetSymValue sets the value of the i-th symbol. i is global index. func (l *Loader) SetSymValue(i Sym, val int64) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 20:26:10 UTC 2024 - 81.5K bytes - Viewed (0) -
src/cmd/link/internal/ld/elf.go
if !ldr.AttrReachable(s) { panic("should never happen") } if uint64(ldr.SymValue(s)) >= sect.Vaddr { syms = syms[i:] break } } eaddr := sect.Vaddr + sect.Length for _, s := range syms { if !ldr.AttrReachable(s) { continue } if ldr.SymValue(s) >= int64(eaddr) { break } // Compute external relocations on the go, and pass to
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 13:29:54 UTC 2024 - 63.6K bytes - Viewed (0)