Lines Matching refs:sh
1471 Elf_Shdr* sh = GetSectionHeader(i); in Strip() local
1472 CHECK(sh != nullptr); in Strip()
1473 const char* name = GetString(*string_section, sh->sh_name); in Strip()
1476 section_headers.push_back(*sh); in Strip()
1485 section_headers.push_back(*sh); in Strip()
1590 Elf_Shdr* sh = GetSectionHeader(i); in FixupSectionHeaders() local
1591 CHECK(sh != nullptr); in FixupSectionHeaders()
1593 if (sh->sh_addr == 0) { in FixupSectionHeaders()
1599 static_cast<uint64_t>(sh->sh_addr), in FixupSectionHeaders()
1600 static_cast<uint64_t>(sh->sh_addr + base_address)); in FixupSectionHeaders()
1602 sh->sh_addr += base_address; in FixupSectionHeaders()
1659 Elf_Shdr* sh = GetSectionHeader(i); in FixupRelocations() local
1660 CHECK(sh != nullptr); in FixupRelocations()
1661 if (sh->sh_type == SHT_REL) { in FixupRelocations()
1662 for (uint32_t j = 0; j < GetRelNum(*sh); j++) { in FixupRelocations()
1663 Elf_Rel& rel = GetRel(*sh, j); in FixupRelocations()
1672 } else if (sh->sh_type == SHT_RELA) { in FixupRelocations()
1673 for (uint32_t j = 0; j < GetRelaNum(*sh); j++) { in FixupRelocations()
1674 Elf_Rela& rela = GetRela(*sh, j); in FixupRelocations()