- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for AddSection (0.11 sec)
-
src/debug/dwarf/open.go
return d.parseTypes(name, types) } // AddSection adds another DWARF section by name. The name should be a // DWARF section name such as ".debug_addr", ".debug_str_offsets", and // so forth. This approach is used for new DWARF sections added in // DWARF 5 and later. func (d *Data) AddSection(name string, contents []byte) error { var err error switch name { case ".debug_addr":
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 4.1K bytes - Viewed (0) -
src/cmd/link/internal/ld/pe.go
symtabOffset int64 // offset to the start of symbol table symbolCount int // number of symbol table records written dataDirectory [16]pe.DataDirectory } // addSection adds section to the COFF file f. func (f *peFile) addSection(name string, sectsize int, filesize int) *peSection { sect := &peSection{ name: name, shortName: name, index: len(f.sections) + 1,
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/debug/dwarf/dwarf5ranges_test.go
rngLists, err := os.ReadFile("testdata/debug_rnglists") if err != nil { t.Fatalf("could not read test data: %v", err) } d := &Data{} d.order = binary.LittleEndian if err := d.AddSection(".debug_rnglists", rngLists); err != nil { t.Fatal(err) } u := &unit{ asize: 8, vers: 5, is64: true, } ret, err := d.dwarf5Ranges(u, nil, 0x5fbd, 0xc, [][2]uint64{}) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 14 18:06:06 UTC 2020 - 925 bytes - Viewed (0) -
src/cmd/link/internal/ld/xcoff.go
func (sect *XcoffScnHdr64) write(ctxt *Link) { binary.Write(ctxt.Out, binary.BigEndian, sect) ctxt.Out.Write32(0) // Add 4 empty bytes at the end to match alignment } // addSection adds section to the XCOFF file f. func (f *xcoffFile) addSection(name string, addr uint64, size uint64, fileoff uint64, flags uint32) *XcoffScnHdr64 { sect := &XcoffScnHdr64{ Spaddr: addr, Svaddr: addr, Ssize: size, Sscnptr: fileoff,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 01 19:58:23 UTC 2023 - 51.8K bytes - Viewed (0) -
src/debug/pe/file.go
continue } b, err := sectionData(s) if err != nil { return nil, err } if suffix == "types" { err = d.AddTypes(fmt.Sprintf("types-%d", i), b) } else { err = d.AddSection(".debug_"+suffix, b) } if err != nil { return nil, err } } return d, nil } // TODO(brainman): document ImportDirectory once we decide what to do with it.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 17.2K bytes - Viewed (0) -
src/debug/macho/file.go
continue } b, err := sectionData(s) if err != nil { return nil, err } if suffix == "types" { err = d.AddTypes(fmt.Sprintf("types-%d", i), b) } else { err = d.AddSection(".debug_"+suffix, b) } if err != nil { return nil, err } } return d, nil } // ImportedSymbols returns the names of all symbols
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/link/internal/ld/data.go
ldr := state.ctxt.loader sname := ldr.SymName(s) if strings.HasPrefix(sname, "go:") { sname = ".go." + sname[len("go:"):] } sect := addsection(ldr, state.ctxt.Arch, seg, sname, rwx) sect.Align = symalign(ldr, s) state.datsize = Rnd(state.datsize, int64(sect.Align)) sect.Vaddr = uint64(state.datsize) return sect }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 12 15:10:50 UTC 2024 - 100.5K bytes - Viewed (0) -
src/debug/elf/file.go
if err != nil { return nil, err } if suffix == "types" { if err := d.AddTypes(fmt.Sprintf("types-%d", i), b); err != nil { return nil, err } } else { if err := d.AddSection(".debug_"+suffix, b); err != nil { return nil, err } } } return d, nil } // Symbols returns the symbol table for f. The symbols will be listed in the order
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 23 16:49:58 UTC 2024 - 43.1K bytes - Viewed (0) -
src/cmd/link/internal/ld/dwarf.go
var compressedSegName string if ctxt.IsELF { compressedSegName = ldr.SymSect(s).Name } else { compressedSegName = ".zdebug_" + ldr.SymSect(s).Name[len(".debug_"):] } sect := addsection(ctxt.loader, ctxt.Arch, &Segdwarf, compressedSegName, 04) sect.Align = int32(ctxt.Arch.Alignment) sect.Length = uint64(len(z.compressed)) sect.Compressed = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 16:25:18 UTC 2024 - 72.4K bytes - Viewed (0) -
src/cmd/link/internal/ld/lib.go
} } if symname != elfsym.Name { l.SetSymExtname(s, elfsym.Name) } } ctxt.Shlibs = append(ctxt.Shlibs, Shlib{Path: libpath, Hash: hash, Deps: deps, File: f}) } func addsection(ldr *loader.Loader, arch *sys.Arch, seg *sym.Segment, name string, rwx int) *sym.Section { sect := ldr.NewSection() sect.Rwx = uint8(rwx) sect.Name = name sect.Seg = seg
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 18:45:27 UTC 2024 - 88.6K bytes - Viewed (0)