Home
last modified time | relevance | path

Searched refs:sec_hdr (Results 1 – 2 of 2) sorted by relevance

/third_party/mesa3d/src/amd/common/
Dac_rgp_elf_object_pack.c378 Elf64_Shdr sec_hdr[5]; in ac_rgp_file_write_elf_object() local
435 memset(&sec_hdr[0], 0x00, sizeof(Elf64_Shdr) * 5); in ac_rgp_file_write_elf_object()
438 sec_hdr[1].sh_name = (uintptr_t)((struct ac_rgp_elf_string_table*)0)->strtab; in ac_rgp_file_write_elf_object()
439 sec_hdr[1].sh_type = SHT_STRTAB; in ac_rgp_file_write_elf_object()
440 sec_hdr[1].sh_offset = sizeof(Elf64_Ehdr); in ac_rgp_file_write_elf_object()
441 sec_hdr[1].sh_size = sizeof(rgp_elf_strtab); in ac_rgp_file_write_elf_object()
444 sec_hdr[2].sh_name = (uintptr_t)((struct ac_rgp_elf_string_table*)0)->text; in ac_rgp_file_write_elf_object()
445 sec_hdr[2].sh_type = SHT_PROGBITS; in ac_rgp_file_write_elf_object()
446 sec_hdr[2].sh_flags = SHF_ALLOC | SHF_EXECINSTR; in ac_rgp_file_write_elf_object()
447 sec_hdr[2].sh_offset = sec_hdr[1].sh_offset + sec_hdr[1].sh_size; in ac_rgp_file_write_elf_object()
[all …]
/third_party/ltp/testcases/kernel/mce-test/tsrc/erst-inj/
Derst-inject.c75 struct cper_section_descriptor *sec_hdr; in inject() local
78 len = sizeof(*rcd_hdr) + sizeof(*sec_hdr) + sizeof(*mem_err); in inject()
79 printf("sizes: %lu, %lu, %lu\n", sizeof(*rcd_hdr), sizeof(*sec_hdr), in inject()
86 sec_hdr = (void *)(rcd_hdr + 1); in inject()
87 mem_err = (void *)(sec_hdr + 1); in inject()
110 memset(sec_hdr, 0, sizeof(*sec_hdr)); in inject()
111 sec_hdr->section_offset = (void *)mem_err - (void *)rcd_hdr; in inject()
112 sec_hdr->section_length = sizeof(*mem_err); in inject()
113 sec_hdr->revision = 0x0100; in inject()
114 sec_hdr->validation_bits = 0; in inject()
[all …]