Lines Matching refs:shdr

232 	  GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);  in compress_section()  local
233 if (shdr == NULL) in compress_section()
238 float new = shdr->sh_size; in compress_section()
241 orig_size, shdr->sh_size, (new / orig) * 100); in compress_section()
454 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in process_file() local
455 if (shdr == NULL) in process_file()
461 const char *sname = elf_strptr (elf, shdrstrndx, shdr->sh_name); in process_file()
470 if (shdr->sh_type != SHT_NOBITS in process_file()
471 && (shdr->sh_flags & SHF_ALLOC) == 0) in process_file()
495 (shdr->sh_type == SHT_NOBITS ? "no bits" : "allocated")); in process_file()
498 if (shdr->sh_type == SHT_SYMTAB) in process_file()
501 if (shdr->sh_link == shdrstrndx) in process_file()
515 if ((shdr->sh_flags & SHF_ALLOC) != 0) in process_file()
517 GElf_Off off = shdr->sh_offset + (shdr->sh_type != SHT_NOBITS in process_file()
518 ? shdr->sh_size : 0); in process_file()
657 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in process_file() local
658 if (shdr == NULL) in process_file()
664 uint64_t size = shdr->sh_size; in process_file()
665 sname = elf_strptr (elf, shdrstrndx, shdr->sh_name); in process_file()
687 if ((shdr->sh_flags & SHF_COMPRESSED) != 0) in process_file()
709 if ((shdr->sh_flags & SHF_COMPRESSED) != 0) in process_file()
764 if ((shdr->sh_flags & SHF_COMPRESSED) == 0) in process_file()
818 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in process_file() local
819 if (shdr == NULL) in process_file()
825 if (gelf_update_shdr (newscn, shdr) == 0) in process_file()
862 name = elf_strptr (elf, shdrstrndx, shdr->sh_name); in process_file()
886 size_t size = shdr->sh_size; in process_file()
887 if ((shdr->sh_flags == SHF_COMPRESSED) != 0) in process_file()
976 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in process_file() local
977 if (shdr == NULL) in process_file()
986 shdr->sh_name = ebl_strtaboffset (scnstrents[shdrstrndx]); in process_file()
987 shdr->sh_type = SHT_STRTAB; in process_file()
988 shdr->sh_flags = 0; in process_file()
989 shdr->sh_addr = 0; in process_file()
990 shdr->sh_offset = 0; in process_file()
991 shdr->sh_size = data->d_size; in process_file()
992 shdr->sh_link = SHN_UNDEF; in process_file()
993 shdr->sh_info = SHN_UNDEF; in process_file()
994 shdr->sh_addralign = 1; in process_file()
995 shdr->sh_entsize = 0; in process_file()
997 if (gelf_update_shdr (scn, shdr) == 0) in process_file()
1020 shdr = gelf_getshdr (oldscn, &shdr_mem); in process_file()
1021 if (shdr == NULL) in process_file()
1028 shstrtab_name = elf_strptr (elf, shdrstrndx, shdr->sh_name); in process_file()
1036 shstrtab_size = shdr->sh_size; in process_file()
1037 if ((shdr->sh_flags & SHF_COMPRESSED) != 0) in process_file()
1080 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in process_file() local
1081 if (shdr == NULL) in process_file()
1090 if ((shdr->sh_flags & SHF_ALLOC) == 0) in process_file()
1093 size_t addralign = shdr->sh_addralign ?: 1; in process_file()
1095 shdr->sh_offset = last_offset; in process_file()
1096 if (shdr->sh_type != SHT_NOBITS) in process_file()
1097 last_offset += shdr->sh_size; in process_file()
1101 shdr->sh_name = ebl_strtaboffset (scnstrents[ndx]); in process_file()
1103 if (gelf_update_shdr (scn, shdr) == 0) in process_file()
1161 shdr = gelf_getshdr (oldscn, &shdr_mem); in process_file()
1162 if (shdr == NULL) in process_file()
1169 symtab_name = elf_strptr (elf, shdrstrndx, shdr->sh_name); in process_file()
1177 symtab_size = shdr->sh_size; in process_file()
1178 if ((shdr->sh_flags & SHF_COMPRESSED) != 0) in process_file()