Home
last modified time | relevance | path

Searched refs:relro_size (Results 1 – 10 of 10) sorted by relevance

/ndk/sources/android/crazy_linker/src/
Dcrazy_linker_elf_relro.cpp70 bool SharedRelro::Allocate(size_t relro_size, in Allocate() argument
76 if (!ashmem_.Allocate(relro_size, name.c_str())) { in Allocate()
84 size_ = relro_size; in Allocate()
89 size_t relro_size, in CopyFrom() argument
93 if (!map.Allocate(NULL, relro_size, MemoryMapping::CAN_WRITE, ashmem_.fd())) { in CopyFrom()
99 ::memcpy(map.Get(), reinterpret_cast<void*>(relro_start), relro_size); in CopyFrom()
106 size_ = relro_size; in CopyFrom()
113 size_t relro_size, in CopyFromRelocated() argument
125 NULL, relro_size, MemoryMapping::CAN_READ_WRITE, ashmem_.fd())) { in CopyFromRelocated()
134 relro_size); in CopyFromRelocated()
[all …]
Dcrazy_linker_elf_relro.h40 bool Allocate(size_t relro_size, const char* library_name, Error* error);
47 bool CopyFrom(size_t relro_start, size_t relro_size, Error* error);
57 size_t relro_size,
71 size_t relro_size,
Dcrazy_linker_shared_library.cpp316 size_t* relro_size, in CreateSharedRelro() argument
342 *relro_size = relro.size(); in CreateSharedRelro()
348 size_t relro_size, in UseSharedRelro() argument
354 (void*)relro_size, in UseSharedRelro()
357 if (relro_fd < 0 || relro_size == 0) { in UseSharedRelro()
369 if (relro_start_ != relro_start || relro_size_ != relro_size) { in UseSharedRelro()
374 relro_size); in UseSharedRelro()
380 if (!relro.InitFrom(relro_start, relro_size, relro_fd, error)) in UseSharedRelro()
Dcrazy_linker_shared_library.h68 size_t* relro_size) { in GetInfo() argument
72 *relro_size = relro_size_; in GetInfo()
115 size_t* relro_size,
123 size_t relro_size,
Dcrazy_linker_library_view.cpp42 size_t* relro_size, in GetInfo() argument
49 crazy_->GetInfo(load_address, load_size, relro_start, relro_size); in GetInfo()
Dlinker_phdr.cpp262 ELF::Addr* relro_size) { in phdr_table_get_relro_info() argument
288 *relro_size = in phdr_table_get_relro_info()
315 ELF::Addr relro_start, relro_size; in phdr_table_protect_gnu_relro() local
318 phdr_table, phdr_count, load_bias, &relro_start, &relro_size) < 0) { in phdr_table_protect_gnu_relro()
322 return mprotect((void*)relro_start, relro_size, PROT_READ); in phdr_table_protect_gnu_relro()
Dcrazy_linker_api.cpp238 &info->relro_size, in crazy_library_get_info()
260 size_t* relro_size, in crazy_library_create_shared_relro() argument
271 load_address, relro_start, relro_size, relro_fd, &context->error)) in crazy_library_create_shared_relro()
280 size_t relro_size, in crazy_library_use_shared_relro() argument
290 if (!lib->UseSharedRelro(relro_start, relro_size, relro_fd, &context->error)) in crazy_library_use_shared_relro()
Dlinker_phdr.h61 ELF::Addr* relro_size);
Dcrazy_linker_library_view.h71 size_t* relro_size,
/ndk/sources/android/crazy_linker/include/
Dcrazy_linker.h228 size_t relro_size; member
262 size_t* relro_size,
280 size_t relro_size,