• Home
  • Raw
  • Download

Lines Matching refs:phdr

190   Phdr phdr = {};  in SinglePtLoad()  local
191 phdr.p_type = PT_LOAD; in SinglePtLoad()
192 phdr.p_vaddr = 0x2000; in SinglePtLoad()
193 phdr.p_memsz = 0x10000; in SinglePtLoad()
194 phdr.p_flags = PF_R | PF_X; in SinglePtLoad()
195 phdr.p_align = 0x1000; in SinglePtLoad()
196 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in SinglePtLoad()
228 Phdr phdr = {}; in MultipleExecutablePtLoads() local
229 phdr.p_type = PT_LOAD; in MultipleExecutablePtLoads()
230 phdr.p_vaddr = 0x2000; in MultipleExecutablePtLoads()
231 phdr.p_memsz = 0x10000; in MultipleExecutablePtLoads()
232 phdr.p_flags = PF_R | PF_X; in MultipleExecutablePtLoads()
233 phdr.p_align = 0x1000; in MultipleExecutablePtLoads()
234 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in MultipleExecutablePtLoads()
236 memset(&phdr, 0, sizeof(phdr)); in MultipleExecutablePtLoads()
237 phdr.p_type = PT_LOAD; in MultipleExecutablePtLoads()
238 phdr.p_offset = 0x1000; in MultipleExecutablePtLoads()
239 phdr.p_vaddr = 0x2001; in MultipleExecutablePtLoads()
240 phdr.p_memsz = 0x10001; in MultipleExecutablePtLoads()
241 phdr.p_flags = PF_R | PF_X; in MultipleExecutablePtLoads()
242 phdr.p_align = 0x1001; in MultipleExecutablePtLoads()
243 memory_.SetMemory(0x100 + sizeof(phdr), &phdr, sizeof(phdr)); in MultipleExecutablePtLoads()
245 memset(&phdr, 0, sizeof(phdr)); in MultipleExecutablePtLoads()
246 phdr.p_type = PT_LOAD; in MultipleExecutablePtLoads()
247 phdr.p_offset = 0x2000; in MultipleExecutablePtLoads()
248 phdr.p_vaddr = 0x2002; in MultipleExecutablePtLoads()
249 phdr.p_memsz = 0x10002; in MultipleExecutablePtLoads()
250 phdr.p_flags = PF_R | PF_X; in MultipleExecutablePtLoads()
251 phdr.p_align = 0x1002; in MultipleExecutablePtLoads()
252 memory_.SetMemory(0x100 + 2 * sizeof(phdr), &phdr, sizeof(phdr)); in MultipleExecutablePtLoads()
295 Phdr phdr = {}; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr() local
296 phdr.p_type = PT_LOAD; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
297 phdr.p_vaddr = 0x2000; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
298 phdr.p_memsz = 0x10000; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
299 phdr.p_flags = PF_R | PF_X; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
300 phdr.p_align = 0x1000; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
301 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
303 memset(&phdr, 0, sizeof(phdr)); in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
304 phdr.p_type = PT_LOAD; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
305 phdr.p_offset = 0x1000; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
306 phdr.p_vaddr = 0x2001; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
307 phdr.p_memsz = 0x10001; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
308 phdr.p_flags = PF_R | PF_X; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
309 phdr.p_align = 0x1001; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
310 memory_.SetMemory(0x100 + sizeof(phdr) + 100, &phdr, sizeof(phdr)); in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
312 memset(&phdr, 0, sizeof(phdr)); in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
313 phdr.p_type = PT_LOAD; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
314 phdr.p_offset = 0x2000; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
315 phdr.p_vaddr = 0x2002; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
316 phdr.p_memsz = 0x10002; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
317 phdr.p_flags = PF_R | PF_X; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
318 phdr.p_align = 0x1002; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
319 memory_.SetMemory(0x100 + 2 * (sizeof(phdr) + 100), &phdr, sizeof(phdr)); in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
364 Phdr phdr = {}; in NonExecutablePtLoads() local
365 phdr.p_type = PT_LOAD; in NonExecutablePtLoads()
366 phdr.p_vaddr = 0x2000; in NonExecutablePtLoads()
367 phdr.p_memsz = 0x10000; in NonExecutablePtLoads()
368 phdr.p_flags = PF_R; in NonExecutablePtLoads()
369 phdr.p_align = 0x1000; in NonExecutablePtLoads()
370 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in NonExecutablePtLoads()
372 memset(&phdr, 0, sizeof(phdr)); in NonExecutablePtLoads()
373 phdr.p_type = PT_LOAD; in NonExecutablePtLoads()
374 phdr.p_offset = 0x1000; in NonExecutablePtLoads()
375 phdr.p_vaddr = 0x2001; in NonExecutablePtLoads()
376 phdr.p_memsz = 0x10001; in NonExecutablePtLoads()
377 phdr.p_flags = PF_R | PF_X; in NonExecutablePtLoads()
378 phdr.p_align = 0x1001; in NonExecutablePtLoads()
379 memory_.SetMemory(0x100 + sizeof(phdr), &phdr, sizeof(phdr)); in NonExecutablePtLoads()
381 memset(&phdr, 0, sizeof(phdr)); in NonExecutablePtLoads()
382 phdr.p_type = PT_LOAD; in NonExecutablePtLoads()
383 phdr.p_offset = 0x2000; in NonExecutablePtLoads()
384 phdr.p_vaddr = 0x2002; in NonExecutablePtLoads()
385 phdr.p_memsz = 0x10002; in NonExecutablePtLoads()
386 phdr.p_flags = PF_R; in NonExecutablePtLoads()
387 phdr.p_align = 0x1002; in NonExecutablePtLoads()
388 memory_.SetMemory(0x100 + 2 * sizeof(phdr), &phdr, sizeof(phdr)); in NonExecutablePtLoads()
423 Phdr phdr = {}; in ManyPhdrs() local
424 phdr.p_type = PT_LOAD; in ManyPhdrs()
425 phdr.p_vaddr = 0x2000; in ManyPhdrs()
426 phdr.p_memsz = 0x10000; in ManyPhdrs()
427 phdr.p_flags = PF_R | PF_X; in ManyPhdrs()
428 phdr.p_align = 0x1000; in ManyPhdrs()
429 memory_.SetMemory(phdr_offset, &phdr, sizeof(phdr)); in ManyPhdrs()
430 phdr_offset += sizeof(phdr); in ManyPhdrs()
432 memset(&phdr, 0, sizeof(phdr)); in ManyPhdrs()
433 phdr.p_type = PT_GNU_EH_FRAME; in ManyPhdrs()
434 memory_.SetMemory(phdr_offset, &phdr, sizeof(phdr)); in ManyPhdrs()
435 phdr_offset += sizeof(phdr); in ManyPhdrs()
437 memset(&phdr, 0, sizeof(phdr)); in ManyPhdrs()
438 phdr.p_type = PT_DYNAMIC; in ManyPhdrs()
439 memory_.SetMemory(phdr_offset, &phdr, sizeof(phdr)); in ManyPhdrs()
440 phdr_offset += sizeof(phdr); in ManyPhdrs()
442 memset(&phdr, 0, sizeof(phdr)); in ManyPhdrs()
443 phdr.p_type = PT_INTERP; in ManyPhdrs()
444 memory_.SetMemory(phdr_offset, &phdr, sizeof(phdr)); in ManyPhdrs()
445 phdr_offset += sizeof(phdr); in ManyPhdrs()
447 memset(&phdr, 0, sizeof(phdr)); in ManyPhdrs()
448 phdr.p_type = PT_NOTE; in ManyPhdrs()
449 memory_.SetMemory(phdr_offset, &phdr, sizeof(phdr)); in ManyPhdrs()
450 phdr_offset += sizeof(phdr); in ManyPhdrs()
452 memset(&phdr, 0, sizeof(phdr)); in ManyPhdrs()
453 phdr.p_type = PT_SHLIB; in ManyPhdrs()
454 memory_.SetMemory(phdr_offset, &phdr, sizeof(phdr)); in ManyPhdrs()
455 phdr_offset += sizeof(phdr); in ManyPhdrs()
457 memset(&phdr, 0, sizeof(phdr)); in ManyPhdrs()
458 phdr.p_type = PT_GNU_EH_FRAME; in ManyPhdrs()
459 memory_.SetMemory(phdr_offset, &phdr, sizeof(phdr)); in ManyPhdrs()
491 Elf32_Phdr phdr = {}; in TEST_F() local
492 phdr.p_type = PT_ARM_EXIDX; in TEST_F()
493 phdr.p_offset = 0x2000; in TEST_F()
494 phdr.p_filesz = 16; in TEST_F()
495 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in TEST_F()
538 Phdr phdr = {}; in SonameInit() local
539 phdr.p_type = PT_DYNAMIC; in SonameInit()
540 phdr.p_offset = 0x2000; in SonameInit()
541 phdr.p_memsz = sizeof(Dyn) * 3; in SonameInit()
542 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in SonameInit()
1311 Phdr phdr = {}; in CheckGnuEhFrame() local
1312 phdr.p_type = PT_LOAD; in CheckGnuEhFrame()
1313 phdr.p_memsz = 0x10000; in CheckGnuEhFrame()
1314 phdr.p_flags = PF_R | PF_X; in CheckGnuEhFrame()
1315 phdr.p_align = 0x1000; in CheckGnuEhFrame()
1316 memory_.SetMemory(phdr_offset, &phdr, sizeof(phdr)); in CheckGnuEhFrame()
1317 phdr_offset += sizeof(phdr); in CheckGnuEhFrame()
1319 memset(&phdr, 0, sizeof(phdr)); in CheckGnuEhFrame()
1320 phdr.p_type = PT_GNU_EH_FRAME; in CheckGnuEhFrame()
1321 phdr.p_vaddr = addr; in CheckGnuEhFrame()
1322 phdr.p_offset = offset; in CheckGnuEhFrame()
1323 memory_.SetMemory(phdr_offset, &phdr, sizeof(phdr)); in CheckGnuEhFrame()
1366 Elf32_Phdr phdr = {}; in TEST_F() local
1367 phdr.p_type = PT_LOAD; in TEST_F()
1368 phdr.p_vaddr = 0; in TEST_F()
1369 phdr.p_memsz = 0x10000; in TEST_F()
1370 phdr.p_flags = PF_R | PF_X; in TEST_F()
1371 phdr.p_align = 0x1000; in TEST_F()
1372 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in TEST_F()
1392 Elf32_Phdr phdr = {}; in TEST_F() local
1393 phdr.p_type = PT_LOAD; in TEST_F()
1394 phdr.p_vaddr = 0x2000; in TEST_F()
1395 phdr.p_memsz = 0x10000; in TEST_F()
1396 phdr.p_flags = PF_R | PF_X; in TEST_F()
1397 phdr.p_align = 0x1000; in TEST_F()
1398 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in TEST_F()
1845 Phdr phdr = {}; in CheckLoadBiasInFirstPhdr() local
1846 phdr.p_type = PT_LOAD; in CheckLoadBiasInFirstPhdr()
1847 phdr.p_offset = 0; in CheckLoadBiasInFirstPhdr()
1848 phdr.p_vaddr = load_bias; in CheckLoadBiasInFirstPhdr()
1849 phdr.p_memsz = 0x10000; in CheckLoadBiasInFirstPhdr()
1850 phdr.p_flags = PF_R | PF_X; in CheckLoadBiasInFirstPhdr()
1851 phdr.p_align = 0x1000; in CheckLoadBiasInFirstPhdr()
1852 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in CheckLoadBiasInFirstPhdr()
1854 memset(&phdr, 0, sizeof(phdr)); in CheckLoadBiasInFirstPhdr()
1855 phdr.p_type = PT_LOAD; in CheckLoadBiasInFirstPhdr()
1856 phdr.p_offset = 0x1000; in CheckLoadBiasInFirstPhdr()
1857 phdr.p_memsz = 0x2000; in CheckLoadBiasInFirstPhdr()
1858 phdr.p_flags = PF_R | PF_X; in CheckLoadBiasInFirstPhdr()
1859 phdr.p_align = 0x1000; in CheckLoadBiasInFirstPhdr()
1860 memory_.SetMemory(0x100 + sizeof(phdr), &phdr, sizeof(phdr)); in CheckLoadBiasInFirstPhdr()
1896 Phdr phdr = {}; in CheckLoadBiasInFirstExecPhdr() local
1897 phdr.p_type = PT_LOAD; in CheckLoadBiasInFirstExecPhdr()
1898 phdr.p_memsz = 0x10000; in CheckLoadBiasInFirstExecPhdr()
1899 phdr.p_flags = PF_R; in CheckLoadBiasInFirstExecPhdr()
1900 phdr.p_align = 0x1000; in CheckLoadBiasInFirstExecPhdr()
1901 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in CheckLoadBiasInFirstExecPhdr()
1903 memset(&phdr, 0, sizeof(phdr)); in CheckLoadBiasInFirstExecPhdr()
1904 phdr.p_type = PT_LOAD; in CheckLoadBiasInFirstExecPhdr()
1905 phdr.p_offset = offset; in CheckLoadBiasInFirstExecPhdr()
1906 phdr.p_vaddr = vaddr; in CheckLoadBiasInFirstExecPhdr()
1907 phdr.p_memsz = 0x2000; in CheckLoadBiasInFirstExecPhdr()
1908 phdr.p_flags = PF_R | PF_X; in CheckLoadBiasInFirstExecPhdr()
1909 phdr.p_align = 0x1000; in CheckLoadBiasInFirstExecPhdr()
1910 memory_.SetMemory(0x100 + sizeof(phdr), &phdr, sizeof(phdr)); in CheckLoadBiasInFirstExecPhdr()
1913 memset(&phdr, 0, sizeof(phdr)); in CheckLoadBiasInFirstExecPhdr()
1914 phdr.p_type = PT_LOAD; in CheckLoadBiasInFirstExecPhdr()
1915 phdr.p_offset = 0x1234; in CheckLoadBiasInFirstExecPhdr()
1916 phdr.p_vaddr = 0x2000; in CheckLoadBiasInFirstExecPhdr()
1917 phdr.p_memsz = 0x2000; in CheckLoadBiasInFirstExecPhdr()
1918 phdr.p_flags = PF_R | PF_X; in CheckLoadBiasInFirstExecPhdr()
1919 phdr.p_align = 0x1000; in CheckLoadBiasInFirstExecPhdr()
1920 memory_.SetMemory(0x200 + sizeof(phdr), &phdr, sizeof(phdr)); in CheckLoadBiasInFirstExecPhdr()