Lines Matching refs:sh
88 Elf32_Shdr* sh = elf_file.GetSectionHeader(i); in FixupSectionHeaders() local
89 CHECK(sh != nullptr); in FixupSectionHeaders()
91 if (sh->sh_addr == 0) { in FixupSectionHeaders()
97 sh->sh_addr, sh->sh_addr + base_address); in FixupSectionHeaders()
99 sh->sh_addr += base_address; in FixupSectionHeaders()
151 Elf32_Shdr* sh = elf_file.GetSectionHeader(i); in FixupRelocations() local
152 CHECK(sh != nullptr); in FixupRelocations()
153 if (sh->sh_type == SHT_REL) { in FixupRelocations()
154 for (uint32_t i = 0; i < elf_file.GetRelNum(*sh); i++) { in FixupRelocations()
155 Elf32_Rel& rel = elf_file.GetRel(*sh, i); in FixupRelocations()
163 } else if (sh->sh_type == SHT_RELA) { in FixupRelocations()
164 for (uint32_t i = 0; i < elf_file.GetRelaNum(*sh); i++) { in FixupRelocations()
165 Elf32_Rela& rela = elf_file.GetRela(*sh, i); in FixupRelocations()