Lines Matching refs:shdr
56 Shdr shdr; in GenElf() local
57 memset(&shdr, 0, sizeof(shdr)); in GenElf()
58 shdr.sh_name = 0; in GenElf()
59 shdr.sh_type = SHT_NULL; in GenElf()
60 TEMP_FAILURE_RETRY(write(fd, &shdr, sizeof(Shdr))); in GenElf()
63 memset(&shdr, 0, sizeof(shdr)); in GenElf()
64 shdr.sh_type = SHT_PROGBITS; in GenElf()
65 shdr.sh_name = 11; in GenElf()
66 shdr.sh_addr = 0x5000; in GenElf()
67 shdr.sh_offset = 0x5000; in GenElf()
68 shdr.sh_entsize = 0x100; in GenElf()
69 shdr.sh_size = 0x800; in GenElf()
70 TEMP_FAILURE_RETRY(write(fd, &shdr, sizeof(Shdr))); in GenElf()
73 memset(&shdr, 0, sizeof(shdr)); in GenElf()
74 shdr.sh_type = SHT_STRTAB; in GenElf()
75 shdr.sh_name = 1; in GenElf()
76 shdr.sh_offset = 0x200; in GenElf()
77 shdr.sh_size = 24; in GenElf()
78 TEMP_FAILURE_RETRY(write(fd, &shdr, sizeof(Shdr))); in GenElf()