Home
last modified time | relevance | path

Searched refs:Addr (Results 1 – 13 of 13) sorted by relevance

/ndk/sources/android/crazy_linker/src/
Dlinker_phdr.h46 ELF::Addr* min_vaddr = NULL,
47 ELF::Addr* max_vaddr = NULL);
51 ELF::Addr load_bias);
55 ELF::Addr load_bias);
59 ELF::Addr load_bias,
60 ELF::Addr* relro_start,
61 ELF::Addr* relro_size);
65 ELF::Addr load_bias);
70 ELF::Addr load_bias,
71 ELF::Addr** arm_exidx,
[all …]
Dlinker_phdr.cpp143 ELF::Addr* out_min_vaddr, in phdr_table_get_load_size()
144 ELF::Addr* out_max_vaddr) { in phdr_table_get_load_size()
145 ELF::Addr min_vaddr = ~static_cast<ELF::Addr>(0); in phdr_table_get_load_size()
146 ELF::Addr max_vaddr = 0x00000000U; in phdr_table_get_load_size()
187 ELF::Addr load_bias, in _phdr_table_set_load_prot()
196 ELF::Addr seg_page_start = PAGE_START(phdr->p_vaddr) + load_bias; in _phdr_table_set_load_prot()
197 ELF::Addr seg_page_end = in _phdr_table_set_load_prot()
223 ELF::Addr load_bias) { in phdr_table_protect_segments()
245 ELF::Addr load_bias) { in phdr_table_unprotect_segments()
260 ELF::Addr load_bias, in phdr_table_get_relro_info()
[all …]
Dcrazy_linker_elf_loader.h50 ELF::Addr load_start() { return reinterpret_cast<ELF::Addr>(load_start_); } in load_start()
51 ELF::Addr load_size() { return load_size_; } in load_size()
52 ELF::Addr load_bias() { return load_bias_; } in load_bias()
64 ELF::Addr phdr_size_; // and its size.
69 ELF::Addr load_size_; // Size in bytes of reserved address space.
70 ELF::Addr load_bias_; // load_bias, add this value to all "vaddr"
82 bool CheckPhdr(ELF::Addr, Error* error);
Dcrazy_linker_elf_relocations.h63 ELF::Addr reloc,
64 ELF::Addr* sym_addr,
67 ELF::Addr sym_addr,
71 ELF::Addr sym_addr,
85 ELF::Addr src_reloc,
107 ELF::Addr relocations_type_;
108 ELF::Addr plt_relocations_;
110 ELF::Addr* plt_got_;
112 ELF::Addr relocations_;
Dcrazy_linker_elf_relocations.cpp150 ELF::Addr dyn_value = dyn.GetValue(); in Init()
153 const ELF::Addr tag = dyn.GetTag(); in Init()
205 plt_got_ = reinterpret_cast<ELF::Addr*>(dyn_addr); in Init()
321 ELF::Addr sym_addr, in ApplyRelaReloc()
328 const ELF::Addr reloc = static_cast<ELF::Addr>(rela->r_offset + load_bias_); in ApplyRelaReloc()
337 ELF::Addr* CRAZY_UNUSED target = reinterpret_cast<ELF::Addr*>(reloc); in ApplyRelaReloc()
390 ELF::Addr sym_addr, in ApplyRelReloc()
396 const ELF::Addr reloc = static_cast<ELF::Addr>(rel->r_offset + load_bias_); in ApplyRelReloc()
401 ELF::Addr* CRAZY_UNUSED target = reinterpret_cast<ELF::Addr*>(reloc); in ApplyRelReloc()
499 ELF::Addr reloc, in ResolveSymbol()
[all …]
Dcrazy_linker_elf_loader.cpp160 ELF::Addr page_min = PAGE_START(header_.e_phoff); in ReadProgramHeader()
161 ELF::Addr page_max = in ReadProgramHeader()
163 ELF::Addr page_offset = PAGE_OFFSET(header_.e_phoff); in ReadProgramHeader()
186 ELF::Addr min_vaddr; in ReserveAddressSpace()
211 load_bias_ = reinterpret_cast<ELF::Addr>(start) - min_vaddr; in ReserveAddressSpace()
234 ELF::Addr elf_addr = load_bias_ + phdr->p_vaddr; in FindPhdr()
236 ELF::Addr offset = ehdr->e_phoff; in FindPhdr()
237 return CheckPhdr((ELF::Addr)ehdr + offset, error); in FindPhdr()
250 bool ElfLoader::CheckPhdr(ELF::Addr loaded, Error* error) { in CheckPhdr()
252 ELF::Addr loaded_end = loaded + (phdr_num_ * sizeof(ELF::Phdr)); in CheckPhdr()
[all …]
Dcrazy_linker_elf_view.cpp11 bool ElfView::InitUnmapped(ELF::Addr load_address, in InitUnmapped()
16 ELF::Addr min_vaddr = 0; in InitUnmapped()
59 ELF::Addr elf_addr = load_bias_ + entry->p_vaddr; in InitUnmapped()
61 ELF::Addr offset = ehdr->e_phoff; in InitUnmapped()
72 ELF::Addr phdr0_addr = reinterpret_cast<ELF::Addr>(phdr0); in InitUnmapped()
73 ELF::Addr phdr0_limit = phdr0_addr + sizeof(ELF::Phdr) * phdr_count; in InitUnmapped()
Dcrazy_linker_elf_view.h38 bool InitUnmapped(ELF::Addr load_address,
73 ELF::Addr GetTag() const { return dyn_->d_tag; } in GetTag()
75 ELF::Addr GetValue() const { return dyn_->d_un.d_val; } in GetValue()
77 ELF::Addr* GetValuePointer() const { in GetValuePointer()
78 return const_cast<ELF::Addr*>(&dyn_->d_un.d_ptr); in GetValuePointer()
102 ELF::Addr load_address_;
Dcrazy_linker_elf_symbols.cpp65 ELF::Addr elf_addr = in LookupByAddress()
66 reinterpret_cast<ELF::Addr>(address) - static_cast<ELF::Addr>(load_bias); in LookupByAddress()
83 ELF::Addr elf_addr = in LookupNearestByAddress()
84 reinterpret_cast<ELF::Addr>(address) - static_cast<ELF::Addr>(load_bias); in LookupNearestByAddress()
Delf_traits.h20 typedef Elf32_Addr Addr; typedef
44 typedef Elf64_Addr Addr; typedef
Dcrazy_linker_shared_library.cpp217 ELF::Addr dyn_value = dyn.GetValue(); in Load()
239 init_array_count_ = dyn_value / sizeof(ELF::Addr); in Load()
249 fini_array_count_ = dyn_value / sizeof(ELF::Addr); in Load()
259 preinit_array_count_ = dyn_value / sizeof(ELF::Addr); in Load()
275 reinterpret_cast<ELF::Addr>(Globals::GetRDebug()->GetAddress()); in Load()
Dcrazy_linker_shared_library.h173 ELF::Addr relro_start_;
174 ELF::Addr relro_size_;
/ndk/sources/host-tools/ndk-depends/
Dndk-depends.cc380 typedef uint32_t Addr; typedef in __anon9f1770860111::Elf32
388 Addr e_entry;
404 Addr sh_addr;
418 typedef uint64_t Addr; typedef in __anon9f1770860111::Elf64
429 Addr e_entry;
445 Addr sh_addr;
462 typedef typename ELF::Addr Addr; typedef in __anon9f1770860111::ElfParser
484 Addr GetAddrAt(off_t pos);
605 Elf32::Addr ElfParser<Elf32>::GetAddrAt(off_t pos) { in GetAddrAt()
610 Elf64::Addr ElfParser<Elf64>::GetAddrAt(off_t pos) { in GetAddrAt()