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

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

StartupRelocate Create (const void * vdso_base)

Defined at line 85 of file ../../sdk/lib/c/startup/static-pie-relocate.cc

void ProtectRelro (zx::vmar loaded_vmar)

The (only) VMAR handle will be closed on return, so the region can never be

made writable again later.

Defined at line 153 of file ../../sdk/lib/c/startup/static-pie-relocate.cc