Lines Matching refs:shdr_mem
280 GElf_Shdr shdr_mem; in copy_elf() local
281 ELF_CHECK (gelf_update_shdr (newscn, gelf_getshdr (scn, &shdr_mem)), in copy_elf()
385 GElf_Shdr shdr_mem; in symtab_count_leading_section_symbols() local
386 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (elf, i), &shdr_mem); in symtab_count_leading_section_symbols()
416 GElf_Shdr shdr_mem; in update_sh_size() local
417 GElf_Shdr *newshdr = gelf_getshdr (outscn, &shdr_mem); in update_sh_size()
465 GElf_Shdr shdr_mem; in adjust_relocs() local
466 GElf_Shdr *newshdr = gelf_getshdr (outscn, &shdr_mem); in adjust_relocs()
575 GElf_Shdr shdr_mem; in adjust_all_relocs() local
576 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in adjust_all_relocs()
592 GElf_Shdr shdr_mem; in add_new_section_symbols() local
593 GElf_Shdr *shdr = gelf_getshdr (symscn, &shdr_mem); in add_new_section_symbols()
826 GElf_Shdr shdr_mem; in collect_symbols() local
828 &shdr_mem); in collect_symbols()
1116 GElf_Shdr shdr_mem; in find_alloc_sections_prelink() local
1117 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in find_alloc_sections_prelink()
1243 GElf_Shdr shdr_mem; in new_shstrtab() local
1244 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in new_shstrtab()
1265 GElf_Shdr shdr_mem; in new_shstrtab() local
1266 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in new_shstrtab()
1367 GElf_Shdr shdr_mem; in copy_elided_sections() local
1368 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in copy_elided_sections()
1488 GElf_Shdr shdr_mem; in copy_elided_sections() local
1489 GElf_Shdr *shdr = gelf_getshdr (unstripped_symtab, &shdr_mem); in copy_elided_sections()
1541 GElf_Shdr shdr_mem; in copy_elided_sections() local
1542 GElf_Shdr *shdr = gelf_getshdr (sec->outscn, &shdr_mem); in copy_elided_sections()
1551 || !(shdr_mem.sh_flags & SHF_ALLOC) in copy_elided_sections()
1552 || shdr_mem.sh_addr == 0) in copy_elided_sections()
1553 shdr_mem.sh_addr = sec->shdr.sh_addr; in copy_elided_sections()
1555 shdr_mem.sh_type = sec->shdr.sh_type; in copy_elided_sections()
1556 shdr_mem.sh_size = sec->shdr.sh_size; in copy_elided_sections()
1557 shdr_mem.sh_info = sec->shdr.sh_info; in copy_elided_sections()
1558 shdr_mem.sh_link = sec->shdr.sh_link; in copy_elided_sections()
1563 && sec->shdr.sh_flags != shdr_mem.sh_flags in copy_elided_sections()
1565 shdr_mem.sh_flags |= SHF_INFO_LINK; in copy_elided_sections()
1568 shdr_mem.sh_link = ndx_section[sec->shdr.sh_link - 1]; in copy_elided_sections()
1570 shdr_mem.sh_info = ndx_section[sec->shdr.sh_info - 1]; in copy_elided_sections()
1573 shdr_mem.sh_name = ebl_strtaboffset (sec->strent); in copy_elided_sections()
1583 if (stripped_ehdr->e_type != ET_REL && (shdr_mem.sh_flags & SHF_ALLOC)) in copy_elided_sections()
1585 shdr_mem.sh_offset = sec->shdr.sh_offset; in copy_elided_sections()
1588 const GElf_Off end_offset = (shdr_mem.sh_offset in copy_elided_sections()
1589 + (shdr_mem.sh_type == SHT_NOBITS in copy_elided_sections()
1590 ? 0 : shdr_mem.sh_size)); in copy_elided_sections()
1595 update_shdr (sec->outscn, &shdr_mem); in copy_elided_sections()
1597 if (shdr_mem.sh_type == SHT_SYMTAB || shdr_mem.sh_type == SHT_DYNSYM) in copy_elided_sections()
1603 for (size_t i = 1; i < shdr_mem.sh_size / shdr_mem.sh_entsize; ++i) in copy_elided_sections()
1635 if (shdr_mem.sh_type == SHT_SYMTAB) in copy_elided_sections()
1637 if (shdr_mem.sh_type == SHT_DYNSYM) in copy_elided_sections()
1656 GElf_Shdr shdr_mem; in copy_elided_sections() local
1657 GElf_Shdr *shdr = gelf_getshdr (unstripped_symtab, &shdr_mem); in copy_elided_sections()
1795 shdr = gelf_getshdr (unstripped_symtab, &shdr_mem); in copy_elided_sections()
1889 GElf_Shdr shdr_mem; in copy_elided_sections() local
1890 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in copy_elided_sections()