Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for FileHeader (0.14 sec)

  1. src/debug/macho/file_test.go

    	"io"
    	"reflect"
    	"testing"
    )
    
    type fileTest struct {
    	file        string
    	hdr         FileHeader
    	loads       []any
    	sections    []*SectionHeader
    	relocations map[string][]Reloc
    }
    
    var fileTests = []fileTest{
    	{
    		"testdata/gcc-386-darwin-exec.base64",
    		FileHeader{0xfeedface, Cpu386, 0x3, 0x2, 0xc, 0x3c0, 0x85},
    		[]any{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 12.4K bytes
    - Viewed (0)
  2. src/debug/pe/file.go

    	_, err = sr.Seek(base+int64(binary.Size(f.FileHeader)), io.SeekStart)
    	if err != nil {
    		return nil, err
    	}
    
    	// Read optional header.
    	f.OptionalHeader, err = readOptionalHeader(sr, f.FileHeader.SizeOfOptionalHeader)
    	if err != nil {
    		return nil, err
    	}
    
    	// Process sections.
    	f.Sections = make([]*Section, f.FileHeader.NumberOfSections)
    	for i := 0; i < int(f.FileHeader.NumberOfSections); i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 17.2K bytes
    - Viewed (0)
  3. src/debug/pe/file_test.go

    	"testing"
    	"text/template"
    )
    
    type fileTest struct {
    	file           string
    	hdr            FileHeader
    	opthdr         any
    	sections       []*SectionHeader
    	symbols        []*Symbol
    	hasNoDwarfInfo bool
    }
    
    var fileTests = []fileTest{
    	{
    		file: "testdata/gcc-386-mingw-obj",
    		hdr:  FileHeader{0x014c, 0x000c, 0x0, 0x64a, 0x1e, 0x0, 0x104},
    		sections: []*SectionHeader{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 01 02:25:16 UTC 2023
    - 22.3K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/accessors/GenerateVersionCatalogAccessors.kt

    import org.gradle.kotlin.dsl.concurrent.IO
    import org.gradle.kotlin.dsl.concurrent.withAsynchronousIO
    import org.gradle.kotlin.dsl.concurrent.writeFile
    import org.gradle.kotlin.dsl.internal.sharedruntime.codegen.fileHeader
    import org.gradle.kotlin.dsl.internal.sharedruntime.codegen.kotlinDslPackagePath
    import org.gradle.kotlin.dsl.internal.sharedruntime.support.appendReproducibleNewLine
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:28 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/macho_combine_dwarf.go

    	if textsect == nil {
    		return fmt.Errorf("missing __text section")
    	}
    
    	cmdOffset := unsafe.Sizeof(exem.FileHeader)
    	if is64bit := exem.Magic == macho.Magic64; is64bit {
    		// mach_header_64 has one extra uint32.
    		cmdOffset += unsafe.Sizeof(exem.Magic)
    	}
    	dwarfCmdOffset := uint32(cmdOffset) + exem.FileHeader.Cmdsz
    	availablePadding := textsect.Offset - dwarfCmdOffset
    	if availablePadding < realdwarf.Len {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/accessors/GeneratePluginSpecBuilderAccessors.kt

    import org.gradle.kotlin.dsl.concurrent.withAsynchronousIO
    import org.gradle.kotlin.dsl.concurrent.withSynchronousIO
    import org.gradle.kotlin.dsl.concurrent.writeFile
    import org.gradle.kotlin.dsl.internal.sharedruntime.codegen.fileHeader
    import org.gradle.kotlin.dsl.internal.sharedruntime.codegen.fileHeaderFor
    import org.gradle.kotlin.dsl.internal.sharedruntime.codegen.kotlinDslPackagePath
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:28 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  7. src/internal/xcoff/file.go

    type ImportedSymbol struct {
    	Name    string
    	Library string
    }
    
    // FileHeader holds information about an XCOFF file header.
    type FileHeader struct {
    	TargetMachine uint16
    }
    
    // A File represents an open XCOFF file.
    type File struct {
    	FileHeader
    	Sections     []*Section
    	Symbols      []*Symbol
    	StringTable  []byte
    	LibraryPaths []string
    
    	closer io.Closer
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 12 14:42:29 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/google/pprof/internal/elfexec/elfexec.go

    // address to get symbol table address. For an executable, the base
    // is 0. Otherwise, it's a shared library, and the base is the
    // address where the mapping starts. The kernel needs special handling.
    func GetBase(fh *elf.FileHeader, loadSegment *elf.ProgHeader, stextOffset *uint64, start, limit, offset uint64) (uint64, error) {
    
    	if start == 0 && offset == 0 && (limit == ^uint64(0) || limit == 0) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  9. src/debug/macho/file.go

    import (
    	"bytes"
    	"compress/zlib"
    	"debug/dwarf"
    	"encoding/binary"
    	"fmt"
    	"internal/saferio"
    	"io"
    	"os"
    	"strings"
    )
    
    // A File represents an open Mach-O file.
    type File struct {
    	FileHeader
    	ByteOrder binary.ByteOrder
    	Loads     []Load
    	Sections  []*Section
    
    	Symtab   *Symtab
    	Dysymtab *Dysymtab
    
    	closer io.Closer
    }
    
    // A Load represents any Mach-O load command.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  10. src/cmd/vendor/github.com/google/pprof/internal/binutils/binutils.go

    	// value until we have a sample address for this mapping, so that we can
    	// correctly identify the associated program segment that is needed to compute
    	// the base.
    	if _, err := elfexec.GetBase(&ef.FileHeader, elfexec.FindTextProgHeader(ef), kernelOffset, start, limit, offset); err != nil {
    		return nil, fmt.Errorf("could not identify base for %s: %v", name, err)
    	}
    
    	if b.fast || (!b.addr2lineFound && !b.llvmSymbolizerFound) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 22.3K bytes
    - Viewed (0)
Back to top