Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for Phentsize (0.14 sec)

  1. src/debug/elf/file.go

    	}
    	if phnum > 0 && phentsize < wantPhentsize {
    		return nil, &FormatError{0, "invalid ELF phentsize", phentsize}
    	}
    
    	// Read program headers
    	f.Progs = make([]*Prog, phnum)
    	phdata, err := saferio.ReadDataAt(sr, uint64(phnum)*uint64(phentsize), phoff)
    	if err != nil {
    		return nil, err
    	}
    	for i := 0; i < phnum; i++ {
    		off := uintptr(i) * uintptr(phentsize)
    		p := new(Prog)
    		switch f.Class {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 23 16:49:58 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  2. src/cmd/link/internal/loadelf/ldelf.go

    		elfobj.entry = hdr.Entry
    		elfobj.phoff = hdr.Phoff
    		elfobj.shoff = hdr.Shoff
    		elfobj.flags = hdr.Flags
    		elfobj.ehsize = uint32(hdr.Ehsize)
    		elfobj.phentsize = uint32(hdr.Phentsize)
    		elfobj.phnum = uint32(hdr.Phnum)
    		elfobj.shentsize = uint32(hdr.Shentsize)
    		elfobj.shnum = uint32(hdr.Shnum)
    		elfobj.shstrndx = uint32(hdr.Shstrndx)
    	} else {
    		elfobj.type_ = uint32(hdr.Type)
    		elfobj.machine = uint32(hdr.Machine)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:12:12 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/elf.go

    		if elf.Machine(eh.Machine) == elf.EM_X86_64 {
    			sh.Entsize = 16
    		} else if elf.Machine(eh.Machine) == elf.EM_S390 {
    			sh.Entsize = 32
    		} else if elf.Machine(eh.Machine) == elf.EM_PPC64 {
    			// On ppc64, this is just a table of addresses
    			// filled by the dynamic linker
    			sh.Type = uint32(elf.SHT_NOBITS)
    
    			sh.Flags = uint64(elf.SHF_ALLOC + elf.SHF_WRITE)
    			sh.Entsize = 8
    		} else {
    			sh.Entsize = 4
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 13:29:54 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  4. src/cmd/internal/buildid/buildid_test.go

    			if err := binary.Read(bytes.NewReader(data), order, &hdr); err != nil {
    				t.Error(err)
    				continue
    			}
    
    			phoff := hdr.Phoff
    			phnum := int(hdr.Phnum)
    			phsize := uint64(hdr.Phentsize)
    
    			for i := 0; i < phnum; i++ {
    				var phdr elf.Prog64
    				if err := binary.Read(bytes.NewReader(data[phoff:]), order, &phdr); err != nil {
    					t.Error(err)
    					continue
    				}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:28 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  5. src/debug/elf/elf.go

    	Flags     uint32          /* Architecture-specific flags. */
    	Ehsize    uint16          /* Size of ELF header in bytes. */
    	Phentsize uint16          /* Size of program header entry. */
    	Phnum     uint16          /* Number of program header entries. */
    	Shentsize uint16          /* Size of section header entry. */
    	Shnum     uint16          /* Number of section header entries. */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 00:01:16 UTC 2024
    - 134.6K bytes
    - Viewed (0)
  6. src/runtime/pprof/elf.go

    		shentsize = int64(byteOrder.Uint16(buf[58:]))
    		if shentsize != 64 {
    			return "", errBadELF
    		}
    		shnum = int(byteOrder.Uint16(buf[60:]))
    	}
    
    	for i := 0; i < shnum; i++ {
    		if _, err := f.ReadAt(buf[:shentsize], shoff+int64(i)*shentsize); err != nil {
    			return "", err
    		}
    		if typ := byteOrder.Uint32(buf[4:]); typ != 7 { // SHT_NOTE
    			continue
    		}
    		var off, size int64
    		if shentsize == 40 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 08 01:09:18 UTC 2017
    - 2.8K bytes
    - Viewed (0)
  7. pkg/kubelet/eviction/threshold_notifier_linux.go

    	libcontainercgroups "github.com/opencontainers/runc/libcontainer/cgroups"
    	"golang.org/x/sys/unix"
    	"k8s.io/klog/v2"
    )
    
    const (
    	// eventSize is the number of bytes returned by a successful read from an eventfd
    	// see http://man7.org/linux/man-pages/man2/eventfd.2.html for more information
    	eventSize = 8
    	// numFdEvents is the number of events we can record at once.
    	// If EpollWait finds more than this, they will be missed.
    	numFdEvents = 6
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 01 21:59:54 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  8. src/runtime/vdso_elf64.go

    	sh_size      uint64 /* Section size in bytes */
    	sh_link      uint32 /* Link to another section */
    	sh_info      uint32 /* Additional section information */
    	sh_addralign uint64 /* Section alignment */
    	sh_entsize   uint64 /* Entry size if section holds table */
    }
    
    type elfDyn struct {
    	d_tag int64  /* Dynamic entry type */
    	d_val uint64 /* Integer value */
    }
    
    type elfVerdaux struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 19 19:32:35 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  9. src/runtime/vdso_elf32.go

    	sh_size      uint32 /* Section size in bytes */
    	sh_link      uint32 /* Link to another section */
    	sh_info      uint32 /* Additional section information */
    	sh_addralign uint32 /* Section alignment */
    	sh_entsize   uint32 /* Entry size if section holds table */
    }
    
    type elfDyn struct {
    	d_tag int32  /* Dynamic entry type */
    	d_val uint32 /* Integer value */
    }
    
    type elfVerdaux struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 2.8K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Header32.Entry", Field, 0},
    		{"Header32.Flags", Field, 0},
    		{"Header32.Ident", Field, 0},
    		{"Header32.Machine", Field, 0},
    		{"Header32.Phentsize", Field, 0},
    		{"Header32.Phnum", Field, 0},
    		{"Header32.Phoff", Field, 0},
    		{"Header32.Shentsize", Field, 0},
    		{"Header32.Shnum", Field, 0},
    		{"Header32.Shoff", Field, 0},
    		{"Header32.Shstrndx", Field, 0},
    		{"Header32.Type", Field, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top