- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 76 for relocs (0.14 sec)
-
src/debug/pe/section.go
if err != nil { return nil, fmt.Errorf("fail to seek to %q section relocations: %v", sh.Name, err) } relocs := make([]Reloc, sh.NumberOfRelocations) err = binary.Read(r, binary.LittleEndian, relocs) if err != nil { return nil, fmt.Errorf("fail to read section relocations: %v", err) } return relocs, nil } // SectionHeader is similar to [SectionHeader32] with Name // field replaced by Go string.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 3.5K bytes - Viewed (0) -
src/cmd/internal/objfile/goobj.go
} sym := Sym{ Name: name, Addr: uint64(r.DataOff(i)), Size: int64(osym.Siz()), Code: code, } relocs := r.Relocs(i) sym.Relocs = make([]Reloc, len(relocs)) for j := range relocs { rel := &relocs[j] sym.Relocs[j] = Reloc{ Addr: uint64(r.DataOff(i)) + uint64(rel.Off()), Size: uint64(rel.Siz()), Stringer: goobjReloc{ Off: rel.Off(),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 15 15:39:57 UTC 2023 - 7.8K bytes - Viewed (0) -
src/cmd/internal/obj/objfile_test.go
} tests := []struct { a, b int equal bool }{ {0, 1, true}, // same contents, no relocs {0, 2, false}, // different contents {3, 4, true}, // same contents, same relocs {3, 5, true}, // recursively same contents {3, 6, false}, // same contents, different relocs } for _, test := range tests { if (h[test.a] == h[test.b]) != test.equal { eq := "equal" if !test.equal {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 15 20:21:30 UTC 2022 - 3.7K bytes - Viewed (0) -
src/internal/pkgbits/encoder.go
e := RelocEnt{r, idx} if w.RelocMap != nil { if i, ok := w.RelocMap[e]; ok { return int(i) } } else { w.RelocMap = make(map[RelocEnt]uint32) } i := len(w.Relocs) w.RelocMap[e] = uint32(i) w.Relocs = append(w.Relocs, e) return i } func (w *Encoder) Sync(m SyncMarker) { if !w.p.SyncMarkers() { return } // Writing out stack frame string references requires working
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 10 23:26:58 UTC 2022 - 9.6K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_ppc64le_cgo_inline_plt.txt
# ppc64le objects compiled with gcc's -fno-plt # option. This inlines PLT calls, and generates # additional reloc types which the internal linker # should handle. # # Verifies golang.org/issue/53345 # # Note, older gcc/clang may accept this option, but # ignore it if binutils does not support the relocs. [!compiler:gc] skip [!cgo] skip [!GOARCH:ppc64le] skip env CGO_CFLAGS='-fno-plt -O2 -g'
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 719 bytes - Viewed (0) -
src/cmd/link/internal/ld/inittask.go
var q []loader.Sym for _, p := range roots { m[p] = 0 q = append(q, p) } for len(q) > 0 { x := q[len(q)-1] q = q[:len(q)-1] relocs := ldr.Relocs(x) n := relocs.Count() ndeps := 0 for i := 0; i < n; i++ { r := relocs.At(i) if r.Type() != objabi.R_INITORDER { continue } ndeps++ s := r.Sym() edges = append(edges, edge{from: x, to: s})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 30 20:09:45 UTC 2024 - 6.2K bytes - Viewed (0) -
src/cmd/link/internal/loadpe/seh.go
rels := ldr.Relocs(pdata) if rels.Count()%3 != 0 { return fmt.Errorf(".pdata symbol %q has invalid relocation count", ldr.SymName(pdata)) } for i := 0; i < rels.Count(); i += 3 { xrel := rels.At(i + 2) handler := findHandlerInXDataAMD64(ldr, xrel.Sym(), xrel.Add()) if handler != 0 { sb := ldr.MakeSymbolUpdater(rels.At(i).Sym()) r, _ := sb.AddRel(objabi.R_KEEP)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 22 16:20:28 UTC 2023 - 3.4K bytes - Viewed (0) -
src/cmd/link/internal/ld/seh.go
off = xdata.Size() uwcache[name] = off xdata.AddBytes(ldr.Data(uw)) // The SEH unwind data can contain relocations, // make sure those are copied over. rels := ldr.Relocs(uw) for i := 0; i < rels.Count(); i++ { r := rels.At(i) rel, _ := xdata.AddRel(r.Type()) rel.SetOff(int32(off) + r.Off()) rel.SetSiz(r.Siz()) rel.SetSym(r.Sym()) rel.SetAdd(r.Add()) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 19:01:27 UTC 2023 - 2K bytes - Viewed (0) -
src/cmd/link/internal/loadxcoff/ldxcoff.go
// TODO(aix): Dwarf section relocation if needed if sect.Type != xcoff.STYP_TEXT && sect.Type != xcoff.STYP_DATA { continue } sb := l.MakeSymbolUpdater(sect.sym) for _, rx := range sect.Relocs { rSym := l.LookupOrCreateCgoExport(rx.Symbol.Name, 0) if uint64(int32(rx.VirtualAddress)) != rx.VirtualAddress { return errorf("virtual address of a relocation is too big: 0x%x", rx.VirtualAddress) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 6.2K bytes - Viewed (0) -
src/cmd/link/internal/sym/reloc.go
Jes Cok <******@****.***> 1693260993 +0000
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 29 15:33:31 UTC 2023 - 1.7K bytes - Viewed (0)