Home
last modified time | relevance | path

Searched refs:relro (Results 1 – 3 of 3) sorted by relevance

/ndk/sources/android/crazy_linker/tests/
Dtest_util.h383 RelroInfo relro; member
399 &this->relro.start, in CreateSharedRelro()
400 &this->relro.size, in CreateSharedRelro()
401 &this->relro.fd)) { in CreateSharedRelro()
409 (void*)this->relro.start, in CreateSharedRelro()
410 (void*)this->relro.size, in CreateSharedRelro()
411 this->relro.fd); in CreateSharedRelro()
420 if (SendFd(fd, this->relro.fd) < 0) { in SendRelroInfo()
425 TEMP_FAILURE_RETRY(::write(fd, &this->relro, sizeof(this->relro))); in SendRelroInfo()
426 if (ret != static_cast<int>(sizeof(this->relro))) { in SendRelroInfo()
[all …]
/ndk/sources/android/crazy_linker/src/
Dcrazy_linker_shared_library.cpp319 SharedRelro relro; in CreateSharedRelro() local
321 if (!relro.Allocate(relro_size_, base_name_, error)) in CreateSharedRelro()
327 if (!relro.CopyFromRelocated( in CreateSharedRelro()
332 if (!relro.CopyFrom(relro_start_, relro_size_, error)) in CreateSharedRelro()
337 if (!relro.ForceReadOnly(error)) in CreateSharedRelro()
341 *relro_start = relro.start(); in CreateSharedRelro()
342 *relro_size = relro.size(); in CreateSharedRelro()
343 *relro_fd = relro.DetachFd(); in CreateSharedRelro()
379 SharedRelro relro; in UseSharedRelro() local
380 if (!relro.InitFrom(relro_start, relro_size, relro_fd, error)) in UseSharedRelro()
/ndk/build/core/
Ddefault-build-commands.mk51 TARGET_RELRO_LDFLAGS := -Wl,-z,relro -Wl,-z,now