Home
last modified time | relevance | path

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

/bionic/linker/
Dlinker_phdr.h50 ElfW(Addr) load_start() const { return reinterpret_cast<ElfW(Addr)>(load_start_); } in load_start()
52 ElfW(Addr) load_bias() const { return load_bias_; } in load_bias()
67 bool CheckPhdr(ElfW(Addr));
68 bool CheckFileRange(ElfW(Addr) offset, size_t size, size_t alignment);
99 ElfW(Addr) load_bias_;
109 ElfW(Addr)* min_vaddr = nullptr, ElfW(Addr)* max_vaddr = nullptr);
112 size_t phdr_count, ElfW(Addr) load_bias);
115 ElfW(Addr) load_bias);
118 ElfW(Addr) load_bias);
121 ElfW(Addr) load_bias, int fd);
[all …]
Dlinker_phdr.cpp251 bool ElfReader::CheckFileRange(ElfW(Addr) offset, size_t size, size_t alignment) { in CheckFileRange()
388 ElfW(Addr)* out_min_vaddr, in phdr_table_get_load_size()
389 ElfW(Addr)* out_max_vaddr) { in phdr_table_get_load_size()
390 ElfW(Addr) min_vaddr = UINTPTR_MAX; in phdr_table_get_load_size()
391 ElfW(Addr) max_vaddr = 0; in phdr_table_get_load_size()
430 ElfW(Addr) min_vaddr; in ReserveAddressSpace()
498 ElfW(Addr) seg_start = phdr->p_vaddr + load_bias_; in LoadSegments()
499 ElfW(Addr) seg_end = seg_start + phdr->p_memsz; in LoadSegments()
501 ElfW(Addr) seg_page_start = PAGE_START(seg_start); in LoadSegments()
502 ElfW(Addr) seg_page_end = PAGE_END(seg_end); in LoadSegments()
[all …]
Dlinker_mips.cpp66 ElfW(Addr) reloc = static_cast<ElfW(Addr)>(rel->r_offset + load_bias); in relocate()
67 ElfW(Addr) sym_addr = 0; in relocate()
120 *reinterpret_cast<ElfW(Addr)*>(reloc) += sym_addr; in relocate()
122 *reinterpret_cast<ElfW(Addr)*>(reloc) += load_bias; in relocate()
136 ElfW(Addr)** got = plt_got_; in mips_relocate_got()
147 got[g++] = reinterpret_cast<ElfW(Addr)*>(0xdeadbeef); in mips_relocate_got()
149 got[g++] = reinterpret_cast<ElfW(Addr)*>(0xdeadfeed); in mips_relocate_got()
153 got[g] = reinterpret_cast<ElfW(Addr)*>(reinterpret_cast<uintptr_t>(got[g]) + load_bias); in mips_relocate_got()
203 *got = reinterpret_cast<ElfW(Addr)*>(lsi->resolve_symbol_address(s)); in mips_relocate_got()
Dlinker.h193 ElfW(Addr) entry;
194 ElfW(Addr) base;
223 ElfW(Addr)** plt_got_;
276 ElfW(Addr) load_bias;
317 ElfW(Addr) resolve_symbol_address(const ElfW(Sym)* s) const;
349 ElfW(Addr) get_verneed_ptr() const;
351 ElfW(Addr) get_verdef_ptr() const;
411 ElfW(Addr)* gnu_bloom_filter_;
423 ElfW(Addr) verdef_ptr_;
426 ElfW(Addr) verneed_ptr_;
Dlinker.cpp146 static ElfW(Addr) get_elf_exec_load_bias(const ElfW(Ehdr)* elf);
622 ElfW(Addr) soinfo::get_verneed_ptr() const { in ElfW() argument
638 ElfW(Addr) soinfo::get_verdef_ptr() const { in ElfW() argument
771 uint32_t bloom_mask_bits = sizeof(ElfW(Addr))*8; in gnu_lookup()
773 ElfW(Addr) bloom_word = gnu_bloom_filter_[word_num]; in gnu_lookup()
1389 ElfW(Addr) address = reinterpret_cast<ElfW(Addr)>(p); in find_containing_library()
1402 static bool symbol_matches_soaddr(const ElfW(Sym)* sym, ElfW(Addr) soaddr) { in symbol_matches_soaddr()
1409 ElfW(Addr) soaddr = reinterpret_cast<ElfW(Addr)>(addr) - load_bias; in ElfW()
1430 ElfW(Addr) soaddr = reinterpret_cast<ElfW(Addr)>(addr) - load_bias; in ElfW()
2612 static ElfW(Addr) call_ifunc_resolver(ElfW(Addr) resolver_addr) { in call_ifunc_resolver()
[all …]
/bionic/libc/include/
Dlink.h43 ElfW(Addr) dlpi_addr;
58 ElfW(Addr) l_addr;
69 ElfW(Addr) r_brk;
75 ElfW(Addr) r_ldbase;
/bionic/tools/relocation_packer/src/
Dpacker.cc21 std::vector<typename ELF::Addr> packed_words; in PackRelocations()
29 Sleb128Encoder<typename ELF::Addr> sleb128_encoder; in PackRelocations()
50 std::vector<typename ELF::Addr> packed_words; in UnpackRelocations()
57 Sleb128Decoder<typename ELF::Addr> decoder(packed, 4); in UnpackRelocations()
Ddelta_encoder_unittest.cc42 std::vector<typename ELF::Addr> packed; in encode()
133 EXPECT_EQ(static_cast<typename ELF::Addr>(-24), packed[ndx++]); in encode()
134 EXPECT_EQ(static_cast<typename ELF::Addr>(-24), packed[ndx++]); in encode()
135 EXPECT_EQ(static_cast<typename ELF::Addr>(-24), packed[ndx++]); in encode()
159 std::vector<typename ELF::Addr> packed; in decode()
186 packed.push_back(static_cast<typename ELF::Addr>(-24)); in decode()
193 packed.push_back(static_cast<typename ELF::Addr>(-24)); // addend in decode()
194 packed.push_back(static_cast<typename ELF::Addr>(-24)); // addend in decode()
Delf_traits.h21 typedef Elf32_Addr Addr; typedef
45 typedef Elf64_Addr Addr; typedef
Dpacker_unittest.cc14 static void AddRelocation(typename ELF::Addr addr, in AddRelocation()
27 static bool CheckRelocation(typename ELF::Addr addr, in CheckRelocation()
42 bool is_32 = sizeof(typename ELF::Addr) == 4; in DoPackNoAddend()
99 bool is_32 = sizeof(typename ELF::Addr) == 4; in DoUnpackNoAddend()
182 if (sizeof(typename ELF::Addr) == 8) { in DoPackWithAddend()
239 if (sizeof(typename ELF::Addr) == 8) { in DoUnpackWithAddend()
Ddelta_encoder.h102 typedef typename ELF::Addr ElfAddr;
/bionic/libc/bionic/
Dlibc_init_static.cpp64 ElfW(Addr) seg_page_start = PAGE_START(phdr->p_vaddr); in apply_gnu_relro()
65 ElfW(Addr) seg_page_end = PAGE_END(phdr->p_vaddr + phdr->p_memsz); in apply_gnu_relro()
Ddl_iterate_phdr_static.cpp77 vdso_info.dlpi_addr = (ElfW(Addr)) ehdr_vdso - vdso_info.dlpi_phdr[i].p_vaddr; in dl_iterate_phdr()
Dvdso.cpp76 ElfW(Addr) vdso_addr = 0; in __libc_init_vdso()
/bionic/libc/malloc_debug/
DMapData.cpp103 if (!get_val<ElfW(Addr)>(entry, addr + offsetof(ElfW(Phdr), p_vaddr), &phdr.p_vaddr)) { in read_loadbase()