- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for PT_LOAD (0.1 sec)
-
src/debug/elf/elf_test.go
{ELFOSABI_LINUX, "ELFOSABI_LINUX"}, {ET_EXEC, "ET_EXEC"}, {EM_860, "EM_860"}, {SHN_LOPROC, "SHN_LOPROC"}, {SHT_PROGBITS, "SHT_PROGBITS"}, {SHF_MERGE + SHF_TLS, "SHF_MERGE+SHF_TLS"}, {PT_LOAD, "PT_LOAD"}, {PF_W + PF_R + 0x50, "PF_W+PF_R+0x50"}, {DT_SYMBOLIC, "DT_SYMBOLIC"}, {DF_BIND_NOW, "DF_BIND_NOW"}, {DF_1_PIE, "DF_1_PIE"}, {NT_FPREGSET, "NT_FPREGSET"}, {STB_GLOBAL, "STB_GLOBAL"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 18 20:34:36 UTC 2023 - 1.2K bytes - Viewed (0) -
src/debug/elf/file_test.go
{Type: PT_LOAD, Flags: PF_X + PF_R, Off: 0x1000, Vaddr: 0x400000, Paddr: 0x0, Filesz: 0x0, Memsz: 0x1000, Align: 0x1000}, {Type: PT_LOAD, Flags: PF_R, Off: 0x1000, Vaddr: 0x401000, Paddr: 0x0, Filesz: 0x1000, Memsz: 0x1000, Align: 0x1000}, {Type: PT_LOAD, Flags: PF_W + PF_R, Off: 0x2000, Vaddr: 0x402000, Paddr: 0x0, Filesz: 0x1000, Memsz: 0x1000, Align: 0x1000},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 22 16:22:42 UTC 2023 - 60.1K bytes - Viewed (0) -
src/cmd/link/elf_test.go
for _, s := range ef.Sections { if s.Flags&elf.SHF_ALLOC == 0 { ret += s.Size } } // also skip gaps between PT_LOAD segments var prev *elf.Prog for _, seg := range ef.Progs { if seg.Type != elf.PT_LOAD { continue } if prev != nil { ret += seg.Off - prev.Off - prev.Filesz } prev = seg } return ret }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 16:34:01 UTC 2023 - 13.7K bytes - Viewed (0) -
src/cmd/internal/objfile/elf.go
} return "ppc64" case elf.EM_S390: return "s390x" } return "" } func (f *elfFile) loadAddress() (uint64, error) { for _, p := range f.elf.Progs { if p.Type == elf.PT_LOAD && p.Flags&elf.PF_X != 0 { // The memory mapping that contains the segment // starts at an aligned address. Apparently this // is what pprof expects, as it uses this and the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 07 20:44:50 UTC 2023 - 3.9K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/elfexec/elfexec.go
func FindTextProgHeader(f *elf.File) *elf.ProgHeader { 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 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 13.9K bytes - Viewed (0) -
src/cmd/cgo/internal/testshared/shared_test.go
} } } // Is a given offset into the file contained in a loaded segment? func isOffsetLoaded(f *elf.File, offset uint64) bool { for _, prog := range f.Progs { if prog.Type == elf.PT_LOAD { if prog.Off <= offset && offset < prog.Off+prog.Filesz { return true } } } return false } func rnd(v int32, r int32) int32 { if r <= 0 { return v } v += r - 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Aug 26 01:54:41 UTC 2023 - 36.3K bytes - Viewed (0) -
src/cmd/link/internal/ld/elf.go
func elf64phdr(out *OutBuf, e *ElfPhdr) { if e.Type == elf.PT_LOAD { fixElfPhdr(e) } out.Write32(uint32(e.Type)) out.Write32(uint32(e.Flags)) out.Write64(e.Off) out.Write64(e.Vaddr) out.Write64(e.Paddr) out.Write64(e.Filesz) out.Write64(e.Memsz) out.Write64(e.Align) } func elf32phdr(out *OutBuf, e *ElfPhdr) { if e.Type == elf.PT_LOAD { fixElfPhdr(e) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 13:29:54 UTC 2024 - 63.6K bytes - Viewed (0) -
src/debug/buildinfo/buildinfo.go
} func (x *elfExe) DataStart() (uint64, uint64) { 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 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 12.6K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/binutils/binutils.go
return elfexec.FindTextProgHeader(ef), nil } // Fetch all the loadable segments. var phdrs []elf.ProgHeader for i := range ef.Progs { if ef.Progs[i].Type == elf.PT_LOAD { phdrs = append(phdrs, ef.Progs[i].ProgHeader) } } // Some ELF files don't contain any loadable program segments, e.g. .ko // kernel modules. It's not an error to have no header in such cases.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 22.3K bytes - Viewed (0) -
src/debug/elf/elf.go
func (i CompressionType) GoString() string { return stringName(uint32(i), compressionStrings, true) } // Prog.Type type ProgType int const ( PT_NULL ProgType = 0 /* Unused entry. */ PT_LOAD ProgType = 1 /* Loadable segment. */ PT_DYNAMIC ProgType = 2 /* Dynamic linking information segment. */ PT_INTERP ProgType = 3 /* Pathname of interpreter. */ PT_NOTE ProgType = 4 /* Auxiliary information. */
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 16 00:01:16 UTC 2024 - 134.6K bytes - Viewed (0)