Lines Matching refs:shdr
500 Shdr shdr = {}; in SonameInit() local
501 shdr.sh_type = SHT_STRTAB; in SonameInit()
503 shdr.sh_addr = 0x20100; in SonameInit()
505 shdr.sh_addr = 0x10100; in SonameInit()
507 shdr.sh_offset = 0x10000; in SonameInit()
508 memory_.SetMemory(0x200 + sizeof(shdr), &shdr, sizeof(shdr)); in SonameInit()
756 Shdr shdr = {}; in InitSectionHeadersMalformedSymData() local
757 shdr.sh_type = SHT_SYMTAB; in InitSectionHeadersMalformedSymData()
758 shdr.sh_link = 4; in InitSectionHeadersMalformedSymData()
759 shdr.sh_addr = 0x5000; in InitSectionHeadersMalformedSymData()
760 shdr.sh_offset = 0x5000; in InitSectionHeadersMalformedSymData()
761 shdr.sh_entsize = 0x100; in InitSectionHeadersMalformedSymData()
762 shdr.sh_size = shdr.sh_entsize * 10; in InitSectionHeadersMalformedSymData()
763 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in InitSectionHeadersMalformedSymData()
766 memset(&shdr, 0, sizeof(shdr)); in InitSectionHeadersMalformedSymData()
767 shdr.sh_type = SHT_DYNSYM; in InitSectionHeadersMalformedSymData()
768 shdr.sh_link = 10; in InitSectionHeadersMalformedSymData()
769 shdr.sh_addr = 0x6000; in InitSectionHeadersMalformedSymData()
770 shdr.sh_offset = 0x6000; in InitSectionHeadersMalformedSymData()
771 shdr.sh_entsize = 0x100; in InitSectionHeadersMalformedSymData()
772 shdr.sh_size = shdr.sh_entsize * 10; in InitSectionHeadersMalformedSymData()
773 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in InitSectionHeadersMalformedSymData()
776 memset(&shdr, 0, sizeof(shdr)); in InitSectionHeadersMalformedSymData()
777 shdr.sh_type = SHT_DYNSYM; in InitSectionHeadersMalformedSymData()
778 shdr.sh_link = 2; in InitSectionHeadersMalformedSymData()
779 shdr.sh_addr = 0x6000; in InitSectionHeadersMalformedSymData()
780 shdr.sh_offset = 0x6000; in InitSectionHeadersMalformedSymData()
781 shdr.sh_entsize = 0x100; in InitSectionHeadersMalformedSymData()
782 shdr.sh_size = shdr.sh_entsize * 10; in InitSectionHeadersMalformedSymData()
783 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in InitSectionHeadersMalformedSymData()
787 memset(&shdr, 0, sizeof(shdr)); in InitSectionHeadersMalformedSymData()
788 shdr.sh_type = SHT_STRTAB; in InitSectionHeadersMalformedSymData()
789 shdr.sh_name = 0x20000; in InitSectionHeadersMalformedSymData()
790 shdr.sh_offset = 0xf000; in InitSectionHeadersMalformedSymData()
791 shdr.sh_size = 0x1000; in InitSectionHeadersMalformedSymData()
792 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in InitSectionHeadersMalformedSymData()
830 Shdr shdr = {}; in InitSectionHeaders() local
831 shdr.sh_type = SHT_SYMTAB; in InitSectionHeaders()
832 shdr.sh_link = 4; in InitSectionHeaders()
833 shdr.sh_addr = 0x5000; in InitSectionHeaders()
834 shdr.sh_offset = 0x5000; in InitSectionHeaders()
835 shdr.sh_entsize = sizeof(Sym); in InitSectionHeaders()
836 shdr.sh_size = shdr.sh_entsize * 10; in InitSectionHeaders()
837 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in InitSectionHeaders()
840 memset(&shdr, 0, sizeof(shdr)); in InitSectionHeaders()
841 shdr.sh_type = SHT_DYNSYM; in InitSectionHeaders()
842 shdr.sh_link = 4; in InitSectionHeaders()
843 shdr.sh_addr = 0x6000; in InitSectionHeaders()
844 shdr.sh_offset = 0x6000; in InitSectionHeaders()
845 shdr.sh_entsize = sizeof(Sym); in InitSectionHeaders()
846 shdr.sh_size = shdr.sh_entsize * 10; in InitSectionHeaders()
847 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in InitSectionHeaders()
850 memset(&shdr, 0, sizeof(shdr)); in InitSectionHeaders()
851 shdr.sh_type = SHT_PROGBITS; in InitSectionHeaders()
852 shdr.sh_name = 0xa000; in InitSectionHeaders()
853 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in InitSectionHeaders()
857 memset(&shdr, 0, sizeof(shdr)); in InitSectionHeaders()
858 shdr.sh_type = SHT_STRTAB; in InitSectionHeaders()
859 shdr.sh_name = 0x20000; in InitSectionHeaders()
860 shdr.sh_offset = 0xf000; in InitSectionHeaders()
861 shdr.sh_size = 0x1000; in InitSectionHeaders()
862 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in InitSectionHeaders()
918 Shdr shdr = {}; in InitSectionHeadersOffsets() local
919 shdr.sh_type = SHT_PROGBITS; in InitSectionHeadersOffsets()
920 shdr.sh_link = 2; in InitSectionHeadersOffsets()
921 shdr.sh_name = 0x200; in InitSectionHeadersOffsets()
922 shdr.sh_addr = 0x5000; in InitSectionHeadersOffsets()
923 shdr.sh_offset = 0x5000; in InitSectionHeadersOffsets()
924 shdr.sh_entsize = 0x100; in InitSectionHeadersOffsets()
925 shdr.sh_size = 0x800; in InitSectionHeadersOffsets()
926 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in InitSectionHeadersOffsets()
930 memset(&shdr, 0, sizeof(shdr)); in InitSectionHeadersOffsets()
931 shdr.sh_type = SHT_STRTAB; in InitSectionHeadersOffsets()
932 shdr.sh_name = 0x20000; in InitSectionHeadersOffsets()
933 shdr.sh_offset = 0xf000; in InitSectionHeadersOffsets()
934 shdr.sh_size = 0x1000; in InitSectionHeadersOffsets()
935 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in InitSectionHeadersOffsets()
938 memset(&shdr, 0, sizeof(shdr)); in InitSectionHeadersOffsets()
939 shdr.sh_type = SHT_PROGBITS; in InitSectionHeadersOffsets()
940 shdr.sh_link = 2; in InitSectionHeadersOffsets()
941 shdr.sh_name = 0x100; in InitSectionHeadersOffsets()
942 shdr.sh_addr = 0x6000; in InitSectionHeadersOffsets()
943 shdr.sh_offset = 0x6000; in InitSectionHeadersOffsets()
944 shdr.sh_entsize = 0x100; in InitSectionHeadersOffsets()
945 shdr.sh_size = 0x500; in InitSectionHeadersOffsets()
946 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in InitSectionHeadersOffsets()
949 memset(&shdr, 0, sizeof(shdr)); in InitSectionHeadersOffsets()
950 shdr.sh_type = SHT_PROGBITS; in InitSectionHeadersOffsets()
951 shdr.sh_link = 2; in InitSectionHeadersOffsets()
952 shdr.sh_name = 0x300; in InitSectionHeadersOffsets()
953 shdr.sh_addr = 0x7000; in InitSectionHeadersOffsets()
954 shdr.sh_offset = 0x7000; in InitSectionHeadersOffsets()
955 shdr.sh_entsize = 0x100; in InitSectionHeadersOffsets()
956 shdr.sh_size = 0x800; in InitSectionHeadersOffsets()
957 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in InitSectionHeadersOffsets()
960 memset(&shdr, 0, sizeof(shdr)); in InitSectionHeadersOffsets()
961 shdr.sh_type = SHT_PROGBITS; in InitSectionHeadersOffsets()
962 shdr.sh_link = 2; in InitSectionHeadersOffsets()
963 shdr.sh_name = 0x400; in InitSectionHeadersOffsets()
964 shdr.sh_addr = 0x6000; in InitSectionHeadersOffsets()
965 shdr.sh_offset = 0xa000; in InitSectionHeadersOffsets()
966 shdr.sh_entsize = 0x100; in InitSectionHeadersOffsets()
967 shdr.sh_size = 0xf00; in InitSectionHeadersOffsets()
968 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in InitSectionHeadersOffsets()
971 memset(&shdr, 0, sizeof(shdr)); in InitSectionHeadersOffsets()
972 shdr.sh_type = SHT_NOTE; in InitSectionHeadersOffsets()
973 shdr.sh_name = 0x500; in InitSectionHeadersOffsets()
974 shdr.sh_offset = 0xb000; in InitSectionHeadersOffsets()
975 shdr.sh_size = 0xf00; in InitSectionHeadersOffsets()
976 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in InitSectionHeadersOffsets()
1075 Elf32_Shdr shdr = {}; in TEST_F() local
1076 shdr.sh_type = SHT_NULL; in TEST_F()
1077 memory_.SetMemory(sh_offset, &shdr, sizeof(shdr)); in TEST_F()
1079 sh_offset += sizeof(shdr); in TEST_F()
1080 memset(&shdr, 0, sizeof(shdr)); in TEST_F()
1081 shdr.sh_type = SHT_STRTAB; in TEST_F()
1082 shdr.sh_name = 1; in TEST_F()
1083 shdr.sh_offset = 0x500; in TEST_F()
1084 shdr.sh_size = 0x100; in TEST_F()
1085 memory_.SetMemory(sh_offset, &shdr, sizeof(shdr)); in TEST_F()
1088 sh_offset += sizeof(shdr); in TEST_F()
1089 memset(&shdr, 0, sizeof(shdr)); in TEST_F()
1090 shdr.sh_type = SHT_PROGBITS; in TEST_F()
1091 shdr.sh_name = 0; in TEST_F()
1092 shdr.sh_addr = 0x600; in TEST_F()
1093 shdr.sh_offset = 0x600; in TEST_F()
1094 shdr.sh_size = 0x200; in TEST_F()
1095 memory_.SetMemory(sh_offset, &shdr, sizeof(shdr)); in TEST_F()
1132 Elf32_Shdr shdr = {}; in TEST_F() local
1133 shdr.sh_type = SHT_NULL; in TEST_F()
1134 memory_.SetMemory(sh_offset, &shdr, sizeof(shdr)); in TEST_F()
1136 sh_offset += sizeof(shdr); in TEST_F()
1137 memset(&shdr, 0, sizeof(shdr)); in TEST_F()
1138 shdr.sh_type = SHT_STRTAB; in TEST_F()
1139 shdr.sh_name = 1; in TEST_F()
1140 shdr.sh_offset = 0x500; in TEST_F()
1141 shdr.sh_size = 0x100; in TEST_F()
1142 memory_.SetMemory(sh_offset, &shdr, sizeof(shdr)); in TEST_F()
1145 sh_offset += sizeof(shdr); in TEST_F()
1146 memset(&shdr, 0, sizeof(shdr)); in TEST_F()
1147 shdr.sh_type = SHT_PROGBITS; in TEST_F()
1148 shdr.sh_name = 0; in TEST_F()
1149 shdr.sh_addr = 0x600; in TEST_F()
1150 shdr.sh_offset = 0x600; in TEST_F()
1151 shdr.sh_size = 0x200; in TEST_F()
1152 memory_.SetMemory(sh_offset, &shdr, sizeof(shdr)); in TEST_F()
1206 Shdr shdr = {}; in BuildID() local
1207 shdr.sh_type = SHT_NOTE; in BuildID()
1208 shdr.sh_name = 0x500; in BuildID()
1209 shdr.sh_offset = 0xb000; in BuildID()
1210 shdr.sh_size = sizeof(note_section); in BuildID()
1211 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in BuildID()
1215 memset(&shdr, 0, sizeof(shdr)); in BuildID()
1216 shdr.sh_type = SHT_STRTAB; in BuildID()
1217 shdr.sh_name = 0x20000; in BuildID()
1218 shdr.sh_offset = 0xf000; in BuildID()
1219 shdr.sh_size = 0x1000; in BuildID()
1220 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in BuildID()
1271 Shdr shdr = {}; in BuildIDTwoNotes() local
1272 shdr.sh_type = SHT_NOTE; in BuildIDTwoNotes()
1273 shdr.sh_name = 0x500; in BuildIDTwoNotes()
1274 shdr.sh_offset = 0xb000; in BuildIDTwoNotes()
1275 shdr.sh_size = sizeof(note_section); in BuildIDTwoNotes()
1276 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in BuildIDTwoNotes()
1280 memset(&shdr, 0, sizeof(shdr)); in BuildIDTwoNotes()
1281 shdr.sh_type = SHT_STRTAB; in BuildIDTwoNotes()
1282 shdr.sh_name = 0x20000; in BuildIDTwoNotes()
1283 shdr.sh_offset = 0xf000; in BuildIDTwoNotes()
1284 shdr.sh_size = 0x1000; in BuildIDTwoNotes()
1285 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in BuildIDTwoNotes()
1325 Shdr shdr = {}; in BuildIDSectionTooSmallForName() local
1326 shdr.sh_type = SHT_NOTE; in BuildIDSectionTooSmallForName()
1327 shdr.sh_name = 0x500; in BuildIDSectionTooSmallForName()
1328 shdr.sh_offset = 0xb000; in BuildIDSectionTooSmallForName()
1329 shdr.sh_size = sizeof(note_header) + 1; in BuildIDSectionTooSmallForName()
1330 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in BuildIDSectionTooSmallForName()
1334 memset(&shdr, 0, sizeof(shdr)); in BuildIDSectionTooSmallForName()
1335 shdr.sh_type = SHT_STRTAB; in BuildIDSectionTooSmallForName()
1336 shdr.sh_name = 0x20000; in BuildIDSectionTooSmallForName()
1337 shdr.sh_offset = 0xf000; in BuildIDSectionTooSmallForName()
1338 shdr.sh_size = 0x1000; in BuildIDSectionTooSmallForName()
1339 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in BuildIDSectionTooSmallForName()
1379 Shdr shdr = {}; in BuildIDSectionTooSmallForDesc() local
1380 shdr.sh_type = SHT_NOTE; in BuildIDSectionTooSmallForDesc()
1381 shdr.sh_name = 0x500; in BuildIDSectionTooSmallForDesc()
1382 shdr.sh_offset = 0xb000; in BuildIDSectionTooSmallForDesc()
1383 shdr.sh_size = sizeof(note_header) + sizeof("GNU") + 1; in BuildIDSectionTooSmallForDesc()
1384 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in BuildIDSectionTooSmallForDesc()
1388 memset(&shdr, 0, sizeof(shdr)); in BuildIDSectionTooSmallForDesc()
1389 shdr.sh_type = SHT_STRTAB; in BuildIDSectionTooSmallForDesc()
1390 shdr.sh_name = 0x20000; in BuildIDSectionTooSmallForDesc()
1391 shdr.sh_offset = 0xf000; in BuildIDSectionTooSmallForDesc()
1392 shdr.sh_size = 0x1000; in BuildIDSectionTooSmallForDesc()
1393 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in BuildIDSectionTooSmallForDesc()
1433 Shdr shdr = {}; in BuildIDSectionTooSmallForHeader() local
1434 shdr.sh_type = SHT_NOTE; in BuildIDSectionTooSmallForHeader()
1435 shdr.sh_name = 0x500; in BuildIDSectionTooSmallForHeader()
1436 shdr.sh_offset = 0xb000; in BuildIDSectionTooSmallForHeader()
1437 shdr.sh_size = sizeof(note_header) - 1; in BuildIDSectionTooSmallForHeader()
1438 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in BuildIDSectionTooSmallForHeader()
1442 memset(&shdr, 0, sizeof(shdr)); in BuildIDSectionTooSmallForHeader()
1443 shdr.sh_type = SHT_STRTAB; in BuildIDSectionTooSmallForHeader()
1444 shdr.sh_name = 0x20000; in BuildIDSectionTooSmallForHeader()
1445 shdr.sh_offset = 0xf000; in BuildIDSectionTooSmallForHeader()
1446 shdr.sh_size = 0x1000; in BuildIDSectionTooSmallForHeader()
1447 memory_.SetMemory(offset, &shdr, sizeof(shdr)); in BuildIDSectionTooSmallForHeader()