Lines Matching refs:shdr

229 	  GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);  in compress_section()  local
230 if (shdr == NULL) in compress_section()
235 float new = shdr->sh_size; in compress_section()
238 orig_size, shdr->sh_size, (new / orig) * 100); in compress_section()
463 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in process_file() local
464 if (shdr == NULL) in process_file()
470 const char *sname = elf_strptr (elf, shdrstrndx, shdr->sh_name); in process_file()
480 && (shdr->sh_flags & SHF_COMPRESSED) == 0 in process_file()
487 && (shdr->sh_flags & SHF_COMPRESSED) != 0) in process_file()
498 else if (shdr->sh_type != SHT_NOBITS in process_file()
499 && (shdr->sh_flags & SHF_ALLOC) == 0) in process_file()
523 (shdr->sh_type == SHT_NOBITS ? "no bits" : "allocated")); in process_file()
526 if (shdr->sh_type == SHT_SYMTAB) in process_file()
529 if (shdr->sh_link == shdrstrndx) in process_file()
543 if ((shdr->sh_flags & SHF_ALLOC) != 0) in process_file()
545 GElf_Off off = shdr->sh_offset + (shdr->sh_type != SHT_NOBITS in process_file()
546 ? shdr->sh_size : 0); in process_file()
693 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in process_file() local
694 if (shdr == NULL) in process_file()
700 uint64_t size = shdr->sh_size; in process_file()
701 sname = elf_strptr (elf, shdrstrndx, shdr->sh_name); in process_file()
723 if ((shdr->sh_flags & SHF_COMPRESSED) != 0) in process_file()
745 if ((shdr->sh_flags & SHF_COMPRESSED) != 0) in process_file()
800 if ((shdr->sh_flags & SHF_COMPRESSED) == 0) in process_file()
854 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in process_file() local
855 if (shdr == NULL) in process_file()
861 if (gelf_update_shdr (newscn, shdr) == 0) in process_file()
898 name = elf_strptr (elf, shdrstrndx, shdr->sh_name); in process_file()
922 size_t size = shdr->sh_size; in process_file()
923 if ((shdr->sh_flags == SHF_COMPRESSED) != 0) in process_file()
1016 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in process_file() local
1017 if (shdr == NULL) in process_file()
1026 shdr->sh_name = dwelf_strent_off (scnstrents[shdrstrndx]); in process_file()
1027 shdr->sh_type = SHT_STRTAB; in process_file()
1028 shdr->sh_flags = 0; in process_file()
1029 shdr->sh_addr = 0; in process_file()
1030 shdr->sh_offset = 0; in process_file()
1031 shdr->sh_size = data->d_size; in process_file()
1032 shdr->sh_link = SHN_UNDEF; in process_file()
1033 shdr->sh_info = SHN_UNDEF; in process_file()
1034 shdr->sh_addralign = 1; in process_file()
1035 shdr->sh_entsize = 0; in process_file()
1037 if (gelf_update_shdr (scn, shdr) == 0) in process_file()
1060 shdr = gelf_getshdr (oldscn, &shdr_mem); in process_file()
1061 if (shdr == NULL) in process_file()
1068 shstrtab_name = elf_strptr (elf, shdrstrndx, shdr->sh_name); in process_file()
1076 shstrtab_size = shdr->sh_size; in process_file()
1077 if ((shdr->sh_flags & SHF_COMPRESSED) != 0) in process_file()
1120 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in process_file() local
1121 if (shdr == NULL) in process_file()
1130 if ((shdr->sh_flags & SHF_ALLOC) == 0) in process_file()
1133 size_t addralign = shdr->sh_addralign ?: 1; in process_file()
1135 shdr->sh_offset = last_offset; in process_file()
1136 if (shdr->sh_type != SHT_NOBITS) in process_file()
1137 last_offset += shdr->sh_size; in process_file()
1141 shdr->sh_name = dwelf_strent_off (scnstrents[ndx]); in process_file()
1143 if (gelf_update_shdr (scn, shdr) == 0) in process_file()
1201 shdr = gelf_getshdr (oldscn, &shdr_mem); in process_file()
1202 if (shdr == NULL) in process_file()
1209 symtab_name = elf_strptr (elf, shdrstrndx, shdr->sh_name); in process_file()
1217 symtab_size = shdr->sh_size; in process_file()
1218 if ((shdr->sh_flags & SHF_COMPRESSED) != 0) in process_file()