class StartupRelocate
Defined at line 22 of file ../../sdk/lib/c/startup/startup-relocate.h
Just constructing this object performs self-relocation for a static PIE.
Once it's constructed, system calls can be used. As soon as the VMAR handle
covering the executable's image is available, its method should be called to
apply RELRO protections. In the shared C library, the both are no-ops.
Public Methods
StartupRelocate Create (const void * vdso_base)
The members have initializers in the declarations just for cleanliness.
With LTO, setting them here can be optimized away because they're unused.
Defined at line 17 of file ../../sdk/lib/c/startup/stub-relocate.cc
void ProtectRelro (zx::vmar loaded_vmar)
Defined at line 19 of file ../../sdk/lib/c/startup/stub-relocate.cc
void StartupRelocate (const StartupRelocate & )
Defined at line 24 of file ../../sdk/lib/c/startup/startup-relocate.h
void StartupRelocate (StartupRelocate && )
Defined at line 25 of file ../../sdk/lib/c/startup/startup-relocate.h