class Relro

Defined at line 139 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.

Note this object holds the Mmapper object moved from the creating

MmapLoader, and will that same object for its MakeReadOnly call.

Public Methods

void Relro ()

Defined at line 141 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 144 of file ../../src/lib/elfldltl/include/lib/elfldltl/mmap-loader.h

void Relro (Relro && )

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

Relro & operator= (const Relro & )

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

Relro & operator= (Relro && )

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

template <auto& diag>
bool Commit (auto & 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 152 of file ../../src/lib/elfldltl/include/lib/elfldltl/mmap-loader.h

Friends

class MmapLoader