class Relro

Defined at line 30 of file ../../src/lib/elfldltl/include/lib/elfldltl/mmap-loader.h

This is returned by Commit(), which completes the use of an MmapLoader.

It represents the capability to apply RELRO protections to a loaded image.

Unlike the MmapLoader object itself, its lifetime is not tied to the image

mappings. After Commit(), the image mapping won't be destroyed by the

MmapLoader's destructor.

Public Methods

void Relro ()

Defined at line 32 of file ../../src/lib/elfldltl/include/lib/elfldltl/mmap-loader.h

void Relro (const Relro & )

Movable, not copyable: the object represents capability ownership.

Defined at line 35 of file ../../src/lib/elfldltl/include/lib/elfldltl/mmap-loader.h

void Relro (Relro && )

Defined at line 36 of file ../../src/lib/elfldltl/include/lib/elfldltl/mmap-loader.h

Relro & operator= (const Relro & )

Defined at line 38 of file ../../src/lib/elfldltl/include/lib/elfldltl/mmap-loader.h

Relro & operator= (Relro && )

Defined at line 39 of file ../../src/lib/elfldltl/include/lib/elfldltl/mmap-loader.h

template <class Diagnostics>
bool Commit (Diagnostics & diag)

This is the only method that can be called, and it must be last.

It makes the RELRO region passed to MmapLoader::Commit read-only.

Defined at line 44 of file ../../src/lib/elfldltl/include/lib/elfldltl/mmap-loader.h

Friends

class MmapLoader