Lines Matching refs:ehdr
155 Ehdr ehdr = {}; in SinglePtLoad() local
156 ehdr.e_phoff = 0x100; in SinglePtLoad()
157 ehdr.e_phnum = 1; in SinglePtLoad()
158 ehdr.e_phentsize = sizeof(Phdr); in SinglePtLoad()
159 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in SinglePtLoad()
193 Ehdr ehdr = {}; in MultipleExecutablePtLoads() local
194 ehdr.e_phoff = 0x100; in MultipleExecutablePtLoads()
195 ehdr.e_phnum = 3; in MultipleExecutablePtLoads()
196 ehdr.e_phentsize = sizeof(Phdr); in MultipleExecutablePtLoads()
197 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in MultipleExecutablePtLoads()
260 Ehdr ehdr = {}; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr() local
261 ehdr.e_phoff = 0x100; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
262 ehdr.e_phnum = 3; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
263 ehdr.e_phentsize = sizeof(Phdr) + 100; in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
264 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
329 Ehdr ehdr = {}; in NonExecutablePtLoads() local
330 ehdr.e_phoff = 0x100; in NonExecutablePtLoads()
331 ehdr.e_phnum = 3; in NonExecutablePtLoads()
332 ehdr.e_phentsize = sizeof(Phdr); in NonExecutablePtLoads()
333 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in NonExecutablePtLoads()
386 Ehdr ehdr = {}; in ManyPhdrs() local
387 ehdr.e_phoff = 0x100; in ManyPhdrs()
388 ehdr.e_phnum = 7; in ManyPhdrs()
389 ehdr.e_phentsize = sizeof(Phdr); in ManyPhdrs()
390 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in ManyPhdrs()
457 Elf32_Ehdr ehdr = {}; in TEST_F() local
458 ehdr.e_phoff = 0x100; in TEST_F()
459 ehdr.e_phnum = 1; in TEST_F()
460 ehdr.e_phentsize = sizeof(Elf32_Phdr); in TEST_F()
461 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in TEST_F()
491 Ehdr ehdr = {}; in SonameInit() local
492 ehdr.e_shoff = 0x200; in SonameInit()
493 ehdr.e_shnum = 2; in SonameInit()
494 ehdr.e_shentsize = sizeof(Shdr); in SonameInit()
495 ehdr.e_phoff = 0x100; in SonameInit()
496 ehdr.e_phnum = 1; in SonameInit()
497 ehdr.e_phentsize = sizeof(Phdr); in SonameInit()
498 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in SonameInit()
700 Ehdr ehdr = {}; in InitProgramHeadersMalformed() local
701 ehdr.e_phoff = 0x100; in InitProgramHeadersMalformed()
702 ehdr.e_phnum = 3; in InitProgramHeadersMalformed()
703 ehdr.e_phentsize = sizeof(Phdr); in InitProgramHeadersMalformed()
704 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in InitProgramHeadersMalformed()
723 Ehdr ehdr = {}; in InitSectionHeadersMalformed() local
724 ehdr.e_shoff = 0x1000; in InitSectionHeadersMalformed()
725 ehdr.e_shnum = 10; in InitSectionHeadersMalformed()
726 ehdr.e_shentsize = sizeof(Shdr); in InitSectionHeadersMalformed()
727 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in InitSectionHeadersMalformed()
748 Ehdr ehdr = {}; in InitSectionHeadersMalformedSymData() local
749 ehdr.e_shoff = offset; in InitSectionHeadersMalformedSymData()
750 ehdr.e_shnum = 5; in InitSectionHeadersMalformedSymData()
751 ehdr.e_shentsize = sizeof(Shdr); in InitSectionHeadersMalformedSymData()
752 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in InitSectionHeadersMalformedSymData()
754 offset += ehdr.e_shentsize; in InitSectionHeadersMalformedSymData()
764 offset += ehdr.e_shentsize; in InitSectionHeadersMalformedSymData()
774 offset += ehdr.e_shentsize; in InitSectionHeadersMalformedSymData()
784 offset += ehdr.e_shentsize; in InitSectionHeadersMalformedSymData()
793 offset += ehdr.e_shentsize; in InitSectionHeadersMalformedSymData()
822 Ehdr ehdr = {}; in InitSectionHeaders() local
823 ehdr.e_shoff = offset; in InitSectionHeaders()
824 ehdr.e_shnum = 5; in InitSectionHeaders()
825 ehdr.e_shentsize = entry_size; in InitSectionHeaders()
826 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in InitSectionHeaders()
828 offset += ehdr.e_shentsize; in InitSectionHeaders()
838 offset += ehdr.e_shentsize; in InitSectionHeaders()
848 offset += ehdr.e_shentsize; in InitSectionHeaders()
854 offset += ehdr.e_shentsize; in InitSectionHeaders()
863 offset += ehdr.e_shentsize; in InitSectionHeaders()
909 Ehdr ehdr = {}; in InitSectionHeadersOffsets() local
910 ehdr.e_shoff = offset; in InitSectionHeadersOffsets()
911 ehdr.e_shnum = 7; in InitSectionHeadersOffsets()
912 ehdr.e_shentsize = sizeof(Shdr); in InitSectionHeadersOffsets()
913 ehdr.e_shstrndx = 2; in InitSectionHeadersOffsets()
914 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in InitSectionHeadersOffsets()
916 offset += ehdr.e_shentsize; in InitSectionHeadersOffsets()
927 offset += ehdr.e_shentsize; in InitSectionHeadersOffsets()
936 offset += ehdr.e_shentsize; in InitSectionHeadersOffsets()
947 offset += ehdr.e_shentsize; in InitSectionHeadersOffsets()
958 offset += ehdr.e_shentsize; in InitSectionHeadersOffsets()
969 offset += ehdr.e_shentsize; in InitSectionHeadersOffsets()
977 offset += ehdr.e_shentsize; in InitSectionHeadersOffsets()
1011 Elf32_Ehdr ehdr = {}; in TEST_F() local
1012 ehdr.e_phoff = 0x100; in TEST_F()
1013 ehdr.e_phnum = 1; in TEST_F()
1014 ehdr.e_phentsize = sizeof(Elf32_Phdr); in TEST_F()
1015 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in TEST_F()
1037 Elf32_Ehdr ehdr = {}; in TEST_F() local
1038 ehdr.e_phoff = 0x100; in TEST_F()
1039 ehdr.e_phnum = 1; in TEST_F()
1040 ehdr.e_phentsize = sizeof(Elf32_Phdr); in TEST_F()
1041 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in TEST_F()
1068 Elf32_Ehdr ehdr = {}; in TEST_F() local
1069 ehdr.e_shstrndx = 1; in TEST_F()
1070 ehdr.e_shoff = sh_offset; in TEST_F()
1071 ehdr.e_shentsize = sizeof(Elf32_Shdr); in TEST_F()
1072 ehdr.e_shnum = 3; in TEST_F()
1073 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in TEST_F()
1125 Elf32_Ehdr ehdr = {}; in TEST_F() local
1126 ehdr.e_shstrndx = 1; in TEST_F()
1127 ehdr.e_shoff = sh_offset; in TEST_F()
1128 ehdr.e_shentsize = sizeof(Elf32_Shdr); in TEST_F()
1129 ehdr.e_shnum = 3; in TEST_F()
1130 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in TEST_F()
1183 Ehdr ehdr = {}; in BuildID() local
1184 ehdr.e_shoff = offset; in BuildID()
1185 ehdr.e_shnum = 3; in BuildID()
1186 ehdr.e_shentsize = sizeof(Shdr); in BuildID()
1187 ehdr.e_shstrndx = 2; in BuildID()
1188 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in BuildID()
1190 offset += ehdr.e_shentsize; in BuildID()
1212 offset += ehdr.e_shentsize; in BuildID()
1221 offset += ehdr.e_shentsize; in BuildID()
1237 Ehdr ehdr = {}; in BuildIDTwoNotes() local
1238 ehdr.e_shoff = offset; in BuildIDTwoNotes()
1239 ehdr.e_shnum = 3; in BuildIDTwoNotes()
1240 ehdr.e_shentsize = sizeof(Shdr); in BuildIDTwoNotes()
1241 ehdr.e_shstrndx = 2; in BuildIDTwoNotes()
1242 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in BuildIDTwoNotes()
1244 offset += ehdr.e_shentsize; in BuildIDTwoNotes()
1277 offset += ehdr.e_shentsize; in BuildIDTwoNotes()
1286 offset += ehdr.e_shentsize; in BuildIDTwoNotes()
1302 Ehdr ehdr = {}; in BuildIDSectionTooSmallForName() local
1303 ehdr.e_shoff = offset; in BuildIDSectionTooSmallForName()
1304 ehdr.e_shnum = 3; in BuildIDSectionTooSmallForName()
1305 ehdr.e_shentsize = sizeof(Shdr); in BuildIDSectionTooSmallForName()
1306 ehdr.e_shstrndx = 2; in BuildIDSectionTooSmallForName()
1307 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in BuildIDSectionTooSmallForName()
1309 offset += ehdr.e_shentsize; in BuildIDSectionTooSmallForName()
1331 offset += ehdr.e_shentsize; in BuildIDSectionTooSmallForName()
1340 offset += ehdr.e_shentsize; in BuildIDSectionTooSmallForName()
1356 Ehdr ehdr = {}; in BuildIDSectionTooSmallForDesc() local
1357 ehdr.e_shoff = offset; in BuildIDSectionTooSmallForDesc()
1358 ehdr.e_shnum = 3; in BuildIDSectionTooSmallForDesc()
1359 ehdr.e_shentsize = sizeof(Shdr); in BuildIDSectionTooSmallForDesc()
1360 ehdr.e_shstrndx = 2; in BuildIDSectionTooSmallForDesc()
1361 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in BuildIDSectionTooSmallForDesc()
1363 offset += ehdr.e_shentsize; in BuildIDSectionTooSmallForDesc()
1385 offset += ehdr.e_shentsize; in BuildIDSectionTooSmallForDesc()
1394 offset += ehdr.e_shentsize; in BuildIDSectionTooSmallForDesc()
1410 Ehdr ehdr = {}; in BuildIDSectionTooSmallForHeader() local
1411 ehdr.e_shoff = offset; in BuildIDSectionTooSmallForHeader()
1412 ehdr.e_shnum = 3; in BuildIDSectionTooSmallForHeader()
1413 ehdr.e_shentsize = sizeof(Shdr); in BuildIDSectionTooSmallForHeader()
1414 ehdr.e_shstrndx = 2; in BuildIDSectionTooSmallForHeader()
1415 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in BuildIDSectionTooSmallForHeader()
1417 offset += ehdr.e_shentsize; in BuildIDSectionTooSmallForHeader()
1439 offset += ehdr.e_shentsize; in BuildIDSectionTooSmallForHeader()
1448 offset += ehdr.e_shentsize; in BuildIDSectionTooSmallForHeader()