• Home
  • Raw
  • Download

Lines Matching refs:base_address

1534 bool ElfFileImpl<ElfTypes>::Fixup(Elf_Addr base_address) {  in Fixup()  argument
1535 if (!FixupDynamic(base_address)) { in Fixup()
1539 if (!FixupSectionHeaders(base_address)) { in Fixup()
1543 if (!FixupProgramHeaders(base_address)) { in Fixup()
1547 if (!FixupSymbols(base_address, true)) { in Fixup()
1551 if (!FixupSymbols(base_address, false)) { in Fixup()
1555 if (!FixupRelocations(base_address)) { in Fixup()
1559 static_assert(sizeof(Elf_Off) >= sizeof(base_address), "Potentially losing precision."); in Fixup()
1560 if (!FixupDebugSections(static_cast<Elf_Off>(base_address))) { in Fixup()
1568 bool ElfFileImpl<ElfTypes>::FixupDynamic(Elf_Addr base_address) { in FixupDynamic() argument
1578 static_cast<uint64_t>(d_ptr + base_address)); in FixupDynamic()
1580 d_ptr += base_address; in FixupDynamic()
1588 bool ElfFileImpl<ElfTypes>::FixupSectionHeaders(Elf_Addr base_address) { in FixupSectionHeaders() argument
1600 static_cast<uint64_t>(sh->sh_addr + base_address)); in FixupSectionHeaders()
1602 sh->sh_addr += base_address; in FixupSectionHeaders()
1608 bool ElfFileImpl<ElfTypes>::FixupProgramHeaders(Elf_Addr base_address) { in FixupProgramHeaders() argument
1620 static_cast<uint64_t>(ph->p_vaddr + base_address)); in FixupProgramHeaders()
1622 ph->p_vaddr += base_address; in FixupProgramHeaders()
1623 ph->p_paddr += base_address; in FixupProgramHeaders()
1631 bool ElfFileImpl<ElfTypes>::FixupSymbols(Elf_Addr base_address, bool dynamic) { in FixupSymbols() argument
1648 static_cast<uint64_t>(symbol->st_value + base_address)); in FixupSymbols()
1650 symbol->st_value += base_address; in FixupSymbols()
1657 bool ElfFileImpl<ElfTypes>::FixupRelocations(Elf_Addr base_address) { in FixupRelocations() argument
1668 static_cast<uint64_t>(rel.r_offset + base_address)); in FixupRelocations()
1670 rel.r_offset += base_address; in FixupRelocations()
1679 static_cast<uint64_t>(rela.r_offset + base_address)); in FixupRelocations()
1681 rela.r_offset += base_address; in FixupRelocations()
1901 bool ElfFile::Fixup(uint64_t base_address) { in Fixup() argument
1903 return elf64_->Fixup(static_cast<Elf64_Addr>(base_address)); in Fixup()
1906 CHECK(IsUint<32>(base_address)) << std::hex << base_address; in Fixup()
1907 return elf32_->Fixup(static_cast<Elf32_Addr>(base_address)); in Fixup()
1909 DELEGATE_TO_IMPL(Fixup, base_address); in Fixup()