• Home
  • Raw
  • Download

Lines Matching refs:phdr

161   Phdr phdr = {};  in SinglePtLoad()  local
162 phdr.p_type = PT_LOAD; in SinglePtLoad()
163 phdr.p_vaddr = 0x2000; in SinglePtLoad()
164 phdr.p_memsz = 0x10000; in SinglePtLoad()
165 phdr.p_flags = PF_R | PF_X; in SinglePtLoad()
166 phdr.p_align = 0x1000; in SinglePtLoad()
167 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in SinglePtLoad()
199 Phdr phdr = {}; in MultipleExecutablePtLoads() local
200 phdr.p_type = PT_LOAD; in MultipleExecutablePtLoads()
201 phdr.p_vaddr = 0x2000; in MultipleExecutablePtLoads()
202 phdr.p_memsz = 0x10000; in MultipleExecutablePtLoads()
203 phdr.p_flags = PF_R | PF_X; in MultipleExecutablePtLoads()
204 phdr.p_align = 0x1000; in MultipleExecutablePtLoads()
205 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in MultipleExecutablePtLoads()
207 memset(&phdr, 0, sizeof(phdr)); in MultipleExecutablePtLoads()
208 phdr.p_type = PT_LOAD; in MultipleExecutablePtLoads()
209 phdr.p_offset = 0x1000; in MultipleExecutablePtLoads()
210 phdr.p_vaddr = 0x2001; in MultipleExecutablePtLoads()
211 phdr.p_memsz = 0x10001; in MultipleExecutablePtLoads()
212 phdr.p_flags = PF_R | PF_X; in MultipleExecutablePtLoads()
213 phdr.p_align = 0x1001; in MultipleExecutablePtLoads()
214 memory_.SetMemory(0x100 + sizeof(phdr), &phdr, sizeof(phdr)); in MultipleExecutablePtLoads()
216 memset(&phdr, 0, sizeof(phdr)); in MultipleExecutablePtLoads()
217 phdr.p_type = PT_LOAD; in MultipleExecutablePtLoads()
218 phdr.p_offset = 0x2000; in MultipleExecutablePtLoads()
219 phdr.p_vaddr = 0x2002; in MultipleExecutablePtLoads()
220 phdr.p_memsz = 0x10002; in MultipleExecutablePtLoads()
221 phdr.p_flags = PF_R | PF_X; in MultipleExecutablePtLoads()
222 phdr.p_align = 0x1002; in MultipleExecutablePtLoads()
223 memory_.SetMemory(0x100 + 2 * sizeof(phdr), &phdr, sizeof(phdr)); in MultipleExecutablePtLoads()
266 Phdr phdr = {}; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr() local
267 phdr.p_type = PT_LOAD; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
268 phdr.p_vaddr = 0x2000; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
269 phdr.p_memsz = 0x10000; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
270 phdr.p_flags = PF_R | PF_X; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
271 phdr.p_align = 0x1000; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
272 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
274 memset(&phdr, 0, sizeof(phdr)); in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
275 phdr.p_type = PT_LOAD; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
276 phdr.p_offset = 0x1000; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
277 phdr.p_vaddr = 0x2001; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
278 phdr.p_memsz = 0x10001; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
279 phdr.p_flags = PF_R | PF_X; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
280 phdr.p_align = 0x1001; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
281 memory_.SetMemory(0x100 + sizeof(phdr) + 100, &phdr, sizeof(phdr)); in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
283 memset(&phdr, 0, sizeof(phdr)); in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
284 phdr.p_type = PT_LOAD; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
285 phdr.p_offset = 0x2000; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
286 phdr.p_vaddr = 0x2002; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
287 phdr.p_memsz = 0x10002; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
288 phdr.p_flags = PF_R | PF_X; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
289 phdr.p_align = 0x1002; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
290 memory_.SetMemory(0x100 + 2 * (sizeof(phdr) + 100), &phdr, sizeof(phdr)); in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
335 Phdr phdr = {}; in NonExecutablePtLoads() local
336 phdr.p_type = PT_LOAD; in NonExecutablePtLoads()
337 phdr.p_vaddr = 0x2000; in NonExecutablePtLoads()
338 phdr.p_memsz = 0x10000; in NonExecutablePtLoads()
339 phdr.p_flags = PF_R; in NonExecutablePtLoads()
340 phdr.p_align = 0x1000; in NonExecutablePtLoads()
341 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in NonExecutablePtLoads()
343 memset(&phdr, 0, sizeof(phdr)); in NonExecutablePtLoads()
344 phdr.p_type = PT_LOAD; in NonExecutablePtLoads()
345 phdr.p_offset = 0x1000; in NonExecutablePtLoads()
346 phdr.p_vaddr = 0x2001; in NonExecutablePtLoads()
347 phdr.p_memsz = 0x10001; in NonExecutablePtLoads()
348 phdr.p_flags = PF_R | PF_X; in NonExecutablePtLoads()
349 phdr.p_align = 0x1001; in NonExecutablePtLoads()
350 memory_.SetMemory(0x100 + sizeof(phdr), &phdr, sizeof(phdr)); in NonExecutablePtLoads()
352 memset(&phdr, 0, sizeof(phdr)); in NonExecutablePtLoads()
353 phdr.p_type = PT_LOAD; in NonExecutablePtLoads()
354 phdr.p_offset = 0x2000; in NonExecutablePtLoads()
355 phdr.p_vaddr = 0x2002; in NonExecutablePtLoads()
356 phdr.p_memsz = 0x10002; in NonExecutablePtLoads()
357 phdr.p_flags = PF_R; in NonExecutablePtLoads()
358 phdr.p_align = 0x1002; in NonExecutablePtLoads()
359 memory_.SetMemory(0x100 + 2 * sizeof(phdr), &phdr, sizeof(phdr)); in NonExecutablePtLoads()
394 Phdr phdr = {}; in ManyPhdrs() local
395 phdr.p_type = PT_LOAD; in ManyPhdrs()
396 phdr.p_vaddr = 0x2000; in ManyPhdrs()
397 phdr.p_memsz = 0x10000; in ManyPhdrs()
398 phdr.p_flags = PF_R | PF_X; in ManyPhdrs()
399 phdr.p_align = 0x1000; in ManyPhdrs()
400 memory_.SetMemory(phdr_offset, &phdr, sizeof(phdr)); in ManyPhdrs()
401 phdr_offset += sizeof(phdr); in ManyPhdrs()
403 memset(&phdr, 0, sizeof(phdr)); in ManyPhdrs()
404 phdr.p_type = PT_GNU_EH_FRAME; in ManyPhdrs()
405 memory_.SetMemory(phdr_offset, &phdr, sizeof(phdr)); in ManyPhdrs()
406 phdr_offset += sizeof(phdr); in ManyPhdrs()
408 memset(&phdr, 0, sizeof(phdr)); in ManyPhdrs()
409 phdr.p_type = PT_DYNAMIC; in ManyPhdrs()
410 memory_.SetMemory(phdr_offset, &phdr, sizeof(phdr)); in ManyPhdrs()
411 phdr_offset += sizeof(phdr); in ManyPhdrs()
413 memset(&phdr, 0, sizeof(phdr)); in ManyPhdrs()
414 phdr.p_type = PT_INTERP; in ManyPhdrs()
415 memory_.SetMemory(phdr_offset, &phdr, sizeof(phdr)); in ManyPhdrs()
416 phdr_offset += sizeof(phdr); in ManyPhdrs()
418 memset(&phdr, 0, sizeof(phdr)); in ManyPhdrs()
419 phdr.p_type = PT_NOTE; in ManyPhdrs()
420 memory_.SetMemory(phdr_offset, &phdr, sizeof(phdr)); in ManyPhdrs()
421 phdr_offset += sizeof(phdr); in ManyPhdrs()
423 memset(&phdr, 0, sizeof(phdr)); in ManyPhdrs()
424 phdr.p_type = PT_SHLIB; in ManyPhdrs()
425 memory_.SetMemory(phdr_offset, &phdr, sizeof(phdr)); in ManyPhdrs()
426 phdr_offset += sizeof(phdr); in ManyPhdrs()
428 memset(&phdr, 0, sizeof(phdr)); in ManyPhdrs()
429 phdr.p_type = PT_GNU_EH_FRAME; in ManyPhdrs()
430 memory_.SetMemory(phdr_offset, &phdr, sizeof(phdr)); in ManyPhdrs()
431 phdr_offset += sizeof(phdr); in ManyPhdrs()
463 Elf32_Phdr phdr = {}; in TEST_F() local
464 phdr.p_type = PT_ARM_EXIDX; in TEST_F()
465 phdr.p_offset = 0x2000; in TEST_F()
466 phdr.p_filesz = 16; in TEST_F()
467 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in TEST_F()
510 Phdr phdr = {}; in SonameInit() local
511 phdr.p_type = PT_DYNAMIC; in SonameInit()
512 phdr.p_offset = 0x2000; in SonameInit()
513 phdr.p_memsz = sizeof(Dyn) * 3; in SonameInit()
514 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in SonameInit()
1017 Elf32_Phdr phdr = {}; in TEST_F() local
1018 phdr.p_type = PT_LOAD; in TEST_F()
1019 phdr.p_vaddr = 0; in TEST_F()
1020 phdr.p_memsz = 0x10000; in TEST_F()
1021 phdr.p_flags = PF_R | PF_X; in TEST_F()
1022 phdr.p_align = 0x1000; in TEST_F()
1023 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in TEST_F()
1043 Elf32_Phdr phdr = {}; in TEST_F() local
1044 phdr.p_type = PT_LOAD; in TEST_F()
1045 phdr.p_vaddr = 0x2000; in TEST_F()
1046 phdr.p_memsz = 0x10000; in TEST_F()
1047 phdr.p_flags = PF_R | PF_X; in TEST_F()
1048 phdr.p_align = 0x1000; in TEST_F()
1049 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in TEST_F()