HomeSort by: relevance | last modified time | path
    Searched refs:phdr (Results 1 - 25 of 164) sorted by relevancy

1 2 3 4 5 6 7

  /src/tests/libexec/ld.elf_so/
t_rtld_r_debug.c 59 const Elf_Phdr *phdr; local
63 phdr = (void *)getauxval(AT_PHDR);
66 printf("AT_PHDR=%p\n", phdr);
69 ATF_REQUIRE(phdr != NULL);
72 phlimit = phdr + phnum;
75 for (; phdr < phlimit; ++phdr) {
76 printf("phdr %p: type=%d flags=0x%x"
80 phdr, phdr->p_type, phdr->p_flags
    [all...]
  /src/sys/arch/emips/stand/common/
bootxx.c 117 Elf32_Phdr phdr; local
156 if (lseek(fd, (off_t) ehdr.e_phoff + i * sizeof(phdr), 0) < 0)
158 if (read(fd, &phdr, sizeof(phdr)) != sizeof(phdr))
160 if (phdr.p_type != PT_LOAD)
162 if (lseek(fd, (off_t)phdr.p_offset, 0) < 0)
164 if (read(fd, (char *)phdr.p_paddr, phdr.p_filesz) != phdr.p_filesz
    [all...]
  /src/sys/arch/mipsco/stand/common/
bootxx.c 121 Elf32_Phdr phdr; local
146 if (lseek(fd, (off_t) ehdr.e_phoff + i * sizeof(phdr), 0) < 0)
148 if (read(fd, &phdr, sizeof(phdr)) != sizeof(phdr))
150 if (phdr.p_type != PT_LOAD)
152 if (lseek(fd, (off_t)phdr.p_offset, 0) < 0)
154 if (read(fd, (char *)phdr.p_paddr, phdr.p_filesz) != phdr.p_filesz
    [all...]
  /src/external/gpl3/gcc/dist/libsanitizer/hwasan/
hwasan_globals.cpp 29 static void CheckCodeModel(ElfW(Addr) base, const ElfW(Phdr) * phdr, member in namespace:__hwasan
33 if (phdr[i].p_type != PT_LOAD)
35 ElfW(Addr) lo = base + phdr[i].p_vaddr, hi = lo + phdr[i].p_memsz;
53 const ElfW(Phdr) * phdr, member in namespace:__hwasan
57 if (phdr[i].p_type != PT_NOTE)
60 const char *note = reinterpret_cast<const char *>(base + phdr[i].p_vaddr);
61 const char *nend = note + phdr[i].p_memsz
    [all...]
  /src/external/gpl3/gcc.old/dist/libsanitizer/hwasan/
hwasan_globals.cpp 27 static void CheckCodeModel(ElfW(Addr) base, const ElfW(Phdr) * phdr, member in namespace:__hwasan
31 if (phdr[i].p_type != PT_LOAD)
33 ElfW(Addr) lo = base + phdr[i].p_vaddr, hi = lo + phdr[i].p_memsz;
51 const ElfW(Phdr) * phdr, member in namespace:__hwasan
55 if (phdr[i].p_type != PT_NOTE)
58 const char *note = reinterpret_cast<const char *>(base + phdr[i].p_vaddr);
59 const char *nend = note + phdr[i].p_memsz
    [all...]
  /src/sys/arch/zaurus/stand/zbsdmod/
zbsdmod.c 108 #define phdr ((Elf32_Phdr *)((char *)elf + elf->e_phoff)) macro
124 if (phdr[i].p_type != PT_LOAD ||
125 (phdr[i].p_flags & (PF_W|PF_R|PF_X)) == 0)
134 if (IS_TEXT(phdr[i]) || IS_DATA(phdr[i])) {
135 posv = phdr[i].p_vaddr;
138 posv += phdr[i].p_filesz;
142 if (IS_BSS(phdr[i])) {
143 posv += phdr[i].p_memsz - phdr[i].p_filesz
    [all...]
  /src/lib/libc/tls/
tls.c 148 const Elf_Phdr *phdr = data->dlpi_phdr; local
151 for (; phdr < phlimit; ++phdr) {
152 if (phdr->p_type == PT_INTERP) {
156 if (phdr->p_type != PT_TLS)
158 tls_initaddr = (void *)(phdr->p_vaddr + data->dlpi_addr);
159 tls_initsize = phdr->p_filesz;
161 tls_size = phdr->p_memsz;
163 tls_size = roundup2(phdr->p_memsz, phdr->p_align)
    [all...]
  /src/sys/arch/pmax/stand/common/
bootxx.c 139 Elf32_Phdr phdr; local
178 if (lseek(fd, (off_t) ehdr.e_phoff + i * sizeof(phdr), 0) < 0)
180 if (read(fd, &phdr, sizeof(phdr)) != sizeof(phdr))
182 if (phdr.p_type != PT_LOAD)
184 if (lseek(fd, (off_t)phdr.p_offset, 0) < 0)
186 if (read(fd, (char *)phdr.p_paddr, phdr.p_filesz) != phdr.p_filesz
    [all...]
  /src/external/gpl3/gcc/dist/libgcc/config/ia64/
fde-glibc.c 55 const Elf64_Phdr *phdr, *p_unwind, *p_dynamic; local
67 phdr = info->dlpi_phdr;
75 for (n = info->dlpi_phnum; --n >= 0; phdr++)
77 if (phdr->p_type == PT_LOAD)
79 Elf64_Addr vaddr = phdr->p_vaddr + load_base;
80 if (data->pc >= vaddr && data->pc < vaddr + phdr->p_memsz)
85 else if (phdr->p_type == PT_IA_64_UNWIND)
86 p_unwind = phdr;
87 else if (phdr->p_type == PT_DYNAMIC)
88 p_dynamic = phdr;
    [all...]
  /src/external/gpl3/gcc.old/dist/libgcc/config/ia64/
fde-glibc.c 55 const Elf64_Phdr *phdr, *p_unwind, *p_dynamic; local
67 phdr = info->dlpi_phdr;
75 for (n = info->dlpi_phnum; --n >= 0; phdr++)
77 if (phdr->p_type == PT_LOAD)
79 Elf64_Addr vaddr = phdr->p_vaddr + load_base;
80 if (data->pc >= vaddr && data->pc < vaddr + phdr->p_memsz)
85 else if (phdr->p_type == PT_IA_64_UNWIND)
86 p_unwind = phdr;
87 else if (phdr->p_type == PT_DYNAMIC)
88 p_dynamic = phdr;
    [all...]
  /src/sys/external/bsd/compiler_rt/dist/lib/lsan/
lsan_common_linux.cc 83 const ElfW(Phdr) *phdr = &(info->dlpi_phdr[j]);
86 if (!(phdr->p_flags & PF_W) || (phdr->p_type != PT_LOAD) ||
87 (phdr->p_memsz == 0))
89 uptr begin = info->dlpi_addr + phdr->p_vaddr;
90 uptr end = begin + phdr->p_memsz;
  /src/sys/arch/epoc32/stand/e32boot/exe/
netbsd.cpp 95 Elf32_Phdr *phdr = NULL; local
100 phdr = (Elf32_Phdr *) new (ELeave) TUint8[PhdrSize];
101 Mem::Copy(phdr, Buffer + ehdr.e_phoff, PhdrSize);
104 if (phdr[i].p_type != PT_LOAD ||
105 (phdr[i].p_flags & (PF_W | PF_X)) == 0)
108 loaddesc->addr = VTOP(phdr[i].p_vaddr);
109 loaddesc->offset = phdr[i].p_offset;
110 loaddesc->size = phdr[i].p_filesz;
  /src/sys/arch/pmax/stand/smallnet/setnetimage/
setnetimage.c 86 Elf32_Phdr phdr; local
140 if (lseek(ifd, (off_t) ehdr.e_phoff + i * sizeof(phdr), 0) < 0)
142 if (read(ifd, &phdr, sizeof(phdr)) != sizeof(phdr))
144 if (phdr.p_type != PT_LOAD)
148 i, phdr.p_paddr, phdr.p_offset, phdr.p_filesz);
150 seglist[nsegs].addr = phdr.p_paddr
    [all...]
  /src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/
attach-pie-misread.exp 49 if ![regexp {\nProgram Headers:\n *Type [^\n]* Align\n(.*?)\n\n} $output trash phdr] {
53 if ![regexp -line {^ *DYNAMIC +0x[0-9a-f]+ +(0x[0-9a-f]+) } $phdr trash dynamic_vaddr] {
59 foreach {trash align} [regexp -line -all -inline {^ *LOAD .* (0x[0-9]+)$} $phdr] {
73 set phdr [read_phdr $binfile "readelf initial scan"]
74 set dynamic_vaddr [lindex $phdr 0]
75 set align_max [lindex $phdr 1]
109 set phdr [read_phdr $binfile "readelf rebuilt with stub_size"]
110 set dynamic_vaddr_prelinkno [lindex $phdr 0]
116 set phdr [read_phdr $binfile "readelf with prelink -R"]
117 set dynamic_vaddr_prelinkyes [lindex $phdr 0
    [all...]
  /src/external/gpl3/gdb/dist/gdb/testsuite/gdb.base/
attach-pie-misread.exp 49 if ![regexp {\nProgram Headers:\n *Type [^\n]* Align\n(.*?)\n\n} $output trash phdr] {
53 if ![regexp -line {^ *DYNAMIC +0x[0-9a-f]+ +(0x[0-9a-f]+) } $phdr trash dynamic_vaddr] {
59 foreach {trash align} [regexp -line -all -inline {^ *LOAD .* (0x[0-9]+)$} $phdr] {
73 set phdr [read_phdr $binfile "readelf initial scan"]
74 set dynamic_vaddr [lindex $phdr 0]
75 set align_max [lindex $phdr 1]
109 set phdr [read_phdr $binfile "readelf rebuilt with stub_size"]
110 set dynamic_vaddr_prelinkno [lindex $phdr 0]
116 set phdr [read_phdr $binfile "readelf with prelink -R"]
117 set dynamic_vaddr_prelinkyes [lindex $phdr 0
    [all...]
  /src/sys/dev/acpi/
qcomsmem.c 90 struct qcsmem_partition_header *phdr; member in struct:qcsmem_partition
178 struct qcsmem_partition_header *phdr; local
229 if (part->phdr != NULL)
231 phdr = (void *)(smem_va + pte->offset);
232 if (phdr->magic != QCSMEM_PART_HDR_MAGIC) {
234 phdr->magic);
237 if (pte->host[0] != phdr->host[0] ||
238 pte->host[1] != phdr->host[1]) {
240 pte->host[0], phdr->host[0],
241 pte->host[1], phdr->host[1])
279 struct qcsmem_partition_header *phdr = part->phdr; local
387 struct qcsmem_partition_header *phdr = part->phdr; local
    [all...]
  /src/external/gpl3/gcc/dist/libsanitizer/lsan/
lsan_common_linux.cpp 83 const ElfW(Phdr) *phdr = &(info->dlpi_phdr[j]);
86 if (!(phdr->p_flags & PF_W) || (phdr->p_type != PT_LOAD) ||
87 (phdr->p_memsz == 0))
89 uptr begin = info->dlpi_addr + phdr->p_vaddr;
90 uptr end = begin + phdr->p_memsz;
  /src/external/gpl3/gcc.old/dist/libsanitizer/lsan/
lsan_common_linux.cpp 83 const ElfW(Phdr) *phdr = &(info->dlpi_phdr[j]);
86 if (!(phdr->p_flags & PF_W) || (phdr->p_type != PT_LOAD) ||
87 (phdr->p_memsz == 0))
89 uptr begin = info->dlpi_addr + phdr->p_vaddr;
90 uptr end = begin + phdr->p_memsz;
  /src/libexec/ld.elf_so/
map_object.c 69 Elf_Phdr *phdr; local
177 phdr = (Elf_Phdr *) ((caddr_t)ehdr + ehdr->e_phoff);
181 phsize = ehdr->e_phnum * sizeof(phdr[0]);
182 obj->phdr = NULL;
189 phlimit = phdr + ehdr->e_phnum;
199 while (phdr < phlimit) {
200 switch (phdr->p_type) {
202 obj->interp = (void *)(uintptr_t)phdr->p_vaddr;
207 segs[++nsegs] = phdr;
222 (void *)(uintptr_t)phdr->p_vaddr, phdr->p_memsz))
    [all...]
  /src/sys/lib/libsa/
loadfile_elf32.c 163 internalize_phdr(Elf_Byte bo, Elf_Phdr *phdr)
167 I32(phdr->p_type);
168 I32(phdr->p_offset);
169 I32(phdr->p_vaddr);
170 I32(phdr->p_paddr);
171 I32(phdr->p_filesz);
172 I32(phdr->p_memsz);
173 I32(phdr->p_flags);
174 I32(phdr->p_align);
176 I32(phdr->p_type)
688 Elf_Phdr *phdr; local
    [all...]
  /src/lib/libpuffs/
requests.c 62 struct putter_hdr phdr; local
75 puffs_framebuf_getdata_atoff(pb, 0, &phdr, sizeof(phdr));
77 howmuch = phdr.pth_framelen - curoff;
142 struct putter_hdr phdr; local
144 puffs_framebuf_getdata_atoff(pb, 0, &phdr, sizeof(phdr));
145 flen = phdr.pth_framelen;
  /src/libexec/ld.elf_so/arch/powerpc/
fixup.c 121 _rtld_espresso_fixup(const char *path, int fd, Elf_Ehdr *ehdr, Elf_Phdr *phdr,
129 (phdr->p_flags & PF_X) == 0) {
153 if (start >= phdr->p_vaddr &&
154 end < phdr->p_vaddr + phdr->p_filesz) {
159 data_addr + (start - phdr->p_vaddr),
175 Elf_Phdr *phdr, caddr_t data_addr, size_t data_size, int data_prot)
196 return _rtld_espresso_fixup(path, fd, ehdr, phdr, data_addr,
  /src/sys/arch/hpcsh/dev/
psh3pwr.c 130 uint8_t phdr; local
146 phdr = _reg_read_1(SH7709_PHDR);
147 _reg_write_1(SH7709_PHDR, phdr | PSH3_GREEN_LED_ON);
211 uint8_t phdr; local
213 phdr = _reg_read_1(SH7709_PHDR);
214 _reg_write_1(SH7709_PHDR, phdr & ~PSH3_GREEN_LED_ON);
218 phdr = _reg_read_1(SH7709_PHDR);
219 _reg_write_1(SH7709_PHDR, phdr | PSH3_GREEN_LED_ON);
  /src/sys/arch/x68k/stand/aout2hux/
aout2hux.c 180 struct elf_m68k_phdr phdr[2]; local
207 fprintf(stderr, "%s: size phdr %d should be %d\n", fn, i,
224 if (fread(phdr, sizeof phdr[0], nphdr, fp) != nphdr) {
231 if (get_uint32(&phdr[i].p_type) != PT_LOAD) {
239 if (nphdr == 1 && (get_uint32(&phdr[0].p_flags) & PF_W)) {
273 inf->text_off = get_uint32(&phdr[0].p_offset);
278 inf->data_size = get_uint32(&phdr[0].p_filesz) -
280 inf->bss_size = get_uint32(&phdr[0].p_memsz) -
281 get_uint32(&phdr[0].p_filesz)
    [all...]
  /src/external/bsd/elftoolchain/dist/libelf/
libelf_phdr.c 54 void *ehdr, *phdr; local
64 if ((phdr = (ec == ELFCLASS32 ?
67 return (phdr);
70 * Check the PHDR related fields in the EHDR for sanity.
103 if ((phdr = calloc(phnum, msz)) == NULL) {
109 e->e_u.e_elf.e_phdr.e_phdr32 = phdr;
111 e->e_u.e_elf.e_phdr.e_phdr64 = phdr;
116 (*xlator)(phdr, phnum * msz, e->e_rawfile + phoff, phnum,
119 return (phdr);

Completed in 81 milliseconds

1 2 3 4 5 6 7