• Home
  • Raw
  • Download

Lines Matching refs:shdr_mem

283       GElf_Shdr shdr_mem;  in copy_elf()  local
284 ELF_CHECK (gelf_update_shdr (newscn, gelf_getshdr (scn, &shdr_mem)), in copy_elf()
394 GElf_Shdr shdr_mem; in symtab_count_leading_section_symbols() local
395 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (elf, i), &shdr_mem); in symtab_count_leading_section_symbols()
425 GElf_Shdr shdr_mem; in update_sh_size() local
426 GElf_Shdr *newshdr = gelf_getshdr (outscn, &shdr_mem); in update_sh_size()
488 GElf_Shdr shdr_mem; in adjust_relocs() local
489 GElf_Shdr *newshdr = gelf_getshdr (outscn, &shdr_mem); in adjust_relocs()
608 GElf_Shdr shdr_mem; in adjust_all_relocs() local
609 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in adjust_all_relocs()
629 GElf_Shdr shdr_mem; in add_new_section_symbols() local
630 GElf_Shdr *shdr = gelf_getshdr (symscn, &shdr_mem); in add_new_section_symbols()
884 GElf_Shdr shdr_mem; in collect_symbols() local
886 &shdr_mem); in collect_symbols()
1220 GElf_Shdr shdr_mem; in find_alloc_sections_prelink() local
1221 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in find_alloc_sections_prelink()
1347 GElf_Shdr shdr_mem; in new_shstrtab() local
1348 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in new_shstrtab()
1371 GElf_Shdr shdr_mem; in new_shstrtab() local
1372 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in new_shstrtab()
1468 GElf_Shdr shdr_mem; in copy_elided_sections() local
1469 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in copy_elided_sections()
1660 GElf_Shdr shdr_mem; in copy_elided_sections() local
1661 GElf_Shdr *shdr = gelf_getshdr (sec->outscn, &shdr_mem); in copy_elided_sections()
1670 || !(shdr_mem.sh_flags & SHF_ALLOC) in copy_elided_sections()
1671 || shdr_mem.sh_addr == 0) in copy_elided_sections()
1672 shdr_mem.sh_addr = sec->shdr.sh_addr; in copy_elided_sections()
1674 shdr_mem.sh_type = sec->shdr.sh_type; in copy_elided_sections()
1675 shdr_mem.sh_size = sec->shdr.sh_size; in copy_elided_sections()
1676 shdr_mem.sh_info = sec->shdr.sh_info; in copy_elided_sections()
1677 shdr_mem.sh_link = sec->shdr.sh_link; in copy_elided_sections()
1682 && sec->shdr.sh_flags != shdr_mem.sh_flags in copy_elided_sections()
1684 shdr_mem.sh_flags |= SHF_INFO_LINK; in copy_elided_sections()
1692 shdr_mem.sh_link = ndx_section[sec->shdr.sh_link - 1]; in copy_elided_sections()
1700 shdr_mem.sh_info = ndx_section[sec->shdr.sh_info - 1]; in copy_elided_sections()
1704 shdr_mem.sh_name = dwelf_strent_off (sec->strent); in copy_elided_sections()
1714 if (stripped_ehdr->e_type != ET_REL && (shdr_mem.sh_flags & SHF_ALLOC)) in copy_elided_sections()
1721 shdr_mem.sh_offset = sec->shdr.sh_offset; in copy_elided_sections()
1724 const GElf_Off end_offset = (shdr_mem.sh_offset in copy_elided_sections()
1725 + (shdr_mem.sh_type == SHT_NOBITS in copy_elided_sections()
1726 ? 0 : shdr_mem.sh_size)); in copy_elided_sections()
1731 update_shdr (sec->outscn, &shdr_mem); in copy_elided_sections()
1733 if (shdr_mem.sh_type == SHT_SYMTAB || shdr_mem.sh_type == SHT_DYNSYM) in copy_elided_sections()
1739 if (shdr_mem.sh_entsize == 0) in copy_elided_sections()
1742 for (size_t i = 1; i < shdr_mem.sh_size / shdr_mem.sh_entsize; ++i) in copy_elided_sections()
1774 if (shdr_mem.sh_type == SHT_SYMTAB) in copy_elided_sections()
1776 if (shdr_mem.sh_type == SHT_DYNSYM) in copy_elided_sections()
1780 if (shdr_mem.sh_type == SHT_GROUP) in copy_elided_sections()
1786 for (size_t i = 1; i < shdr_mem.sh_size / sizeof (Elf32_Word); ++i) in copy_elided_sections()
1811 GElf_Shdr shdr_mem; in copy_elided_sections() local
1812 GElf_Shdr *shdr = gelf_getshdr (unstripped_symtab, &shdr_mem); in copy_elided_sections()
1955 shdr = gelf_getshdr (unstripped_symtab, &shdr_mem); in copy_elided_sections()
2053 GElf_Shdr shdr_mem; in copy_elided_sections() local
2054 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in copy_elided_sections()