Lines Matching refs:base_address
38 Elf32_Off base_address = oat_data_begin - oatdata_address; in Fixup() local
40 if (!FixupDynamic(*elf_file.get(), base_address)) { in Fixup()
44 if (!FixupSectionHeaders(*elf_file.get(), base_address)) { in Fixup()
48 if (!FixupProgramHeaders(*elf_file.get(), base_address)) { in Fixup()
52 if (!FixupSymbols(*elf_file.get(), base_address, true)) { in Fixup()
56 if (!FixupSymbols(*elf_file.get(), base_address, false)) { in Fixup()
60 if (!FixupRelocations(*elf_file.get(), base_address)) { in Fixup()
68 bool ElfFixup::FixupDynamic(ElfFile& elf_file, uintptr_t base_address) { in FixupDynamic() argument
77 d_ptr, d_ptr + base_address); in FixupDynamic()
79 d_ptr += base_address; in FixupDynamic()
86 bool ElfFixup::FixupSectionHeaders(ElfFile& elf_file, uintptr_t base_address) { in FixupSectionHeaders() argument
97 sh->sh_addr, sh->sh_addr + base_address); in FixupSectionHeaders()
99 sh->sh_addr += base_address; in FixupSectionHeaders()
104 bool ElfFixup::FixupProgramHeaders(ElfFile& elf_file, uintptr_t base_address) { in FixupProgramHeaders() argument
115 ph->p_vaddr, ph->p_vaddr + base_address); in FixupProgramHeaders()
117 ph->p_vaddr += base_address; in FixupProgramHeaders()
118 ph->p_paddr += base_address; in FixupProgramHeaders()
125 bool ElfFixup::FixupSymbols(ElfFile& elf_file, uintptr_t base_address, bool dynamic) { in FixupSymbols() argument
141 symbol->st_value, symbol->st_value + base_address); in FixupSymbols()
143 symbol->st_value += base_address; in FixupSymbols()
149 bool ElfFixup::FixupRelocations(ElfFile& elf_file, uintptr_t base_address) { in FixupRelocations() argument
159 rel.r_offset, rel.r_offset + base_address); in FixupRelocations()
161 rel.r_offset += base_address; in FixupRelocations()
169 rela.r_offset, rela.r_offset + base_address); in FixupRelocations()
171 rela.r_offset += base_address; in FixupRelocations()