Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for PF_X (0.48 sec)

  1. src/debug/buildinfo/buildinfo.go

    	for _, s := range x.f.Sections {
    		if s.Name == ".go.buildinfo" {
    			return s.Addr, s.Size
    		}
    	}
    	for _, p := range x.f.Progs {
    		if p.Type == elf.PT_LOAD && p.Flags&(elf.PF_X|elf.PF_W) == elf.PF_W {
    			return p.Vaddr, p.Memsz
    		}
    	}
    	return 0, 0
    }
    
    // peExe is the PE (Windows Portable Executable) implementation of the exe interface.
    type peExe struct {
    	f *pe.File
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  2. src/cmd/vendor/github.com/google/pprof/internal/elfexec/elfexec.go

    	for _, s := range f.Sections {
    		if s.Name == ".text" {
    			// Find the LOAD segment containing the .text section.
    			for _, p := range f.Progs {
    				if p.Type == elf.PT_LOAD && p.Flags&elf.PF_X != 0 && s.Addr >= p.Vaddr && s.Addr < p.Vaddr+p.Memsz {
    					return &p.ProgHeader
    				}
    			}
    		}
    	}
    	return nil
    }
    
    // ProgramHeadersForMapping returns the program segment headers that overlap
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  3. src/cmd/vendor/github.com/google/pprof/internal/binutils/binutils.go

    	}
    
    	base, err := elfexec.GetBase(&ef.FileHeader, ph, f.m.kernelOffset, f.m.start, f.m.limit, f.m.offset)
    	if err != nil {
    		return err
    	}
    	f.base = base
    	f.isData = ph != nil && ph.Flags&elf.PF_X == 0
    	return nil
    }
    
    func (f *file) Name() string {
    	return f.name
    }
    
    func (f *file) ObjAddr(addr uint64) (uint64, error) {
    	f.baseOnce.Do(func() { f.baseErr = f.computeBase(addr) })
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/elf.go

    	ph := newElfPhdr()
    	ph.Type = elf.PT_LOAD
    	if seg.Rwx&4 != 0 {
    		ph.Flags |= elf.PF_R
    	}
    	if seg.Rwx&2 != 0 {
    		ph.Flags |= elf.PF_W
    	}
    	if seg.Rwx&1 != 0 {
    		ph.Flags |= elf.PF_X
    	}
    	ph.Vaddr = seg.Vaddr
    	ph.Paddr = seg.Vaddr
    	ph.Memsz = seg.Length
    	ph.Off = seg.Fileoff
    	ph.Filesz = seg.Filelen
    	ph.Align = uint64(*FlagRound)
    
    	return ph
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 13:29:54 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  5. src/debug/elf/elf.go

    // Prog.Flag
    type ProgFlag uint32
    
    const (
    	PF_X        ProgFlag = 0x1        /* Executable. */
    	PF_W        ProgFlag = 0x2        /* Writable. */
    	PF_R        ProgFlag = 0x4        /* Readable. */
    	PF_MASKOS   ProgFlag = 0x0ff00000 /* Operating system-specific. */
    	PF_MASKPROC ProgFlag = 0xf0000000 /* Processor-specific. */
    )
    
    var pfStrings = []intName{
    	{0x1, "PF_X"},
    	{0x2, "PF_W"},
    	{0x4, "PF_R"},
    }
    
    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/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"NType", Type, 0},
    		{"NewFile", Func, 0},
    		{"OSABI", Type, 0},
    		{"Open", Func, 0},
    		{"PF_MASKOS", Const, 0},
    		{"PF_MASKPROC", Const, 0},
    		{"PF_R", Const, 0},
    		{"PF_W", Const, 0},
    		{"PF_X", Const, 0},
    		{"PT_AARCH64_ARCHEXT", Const, 16},
    		{"PT_AARCH64_UNWIND", Const, 16},
    		{"PT_ARM_ARCHEXT", Const, 16},
    		{"PT_ARM_EXIDX", Const, 16},
    		{"PT_DYNAMIC", Const, 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