template <PhdrLoadPolicy Policy>
class DataWithZeroFillSegment
Defined at line 212 of file ../../src/lib/elfldltl/include/lib/elfldltl/internal/load-segment-types.h
A writable data segment with an attached zero-fill segment is both an
optimization and a way to share the partial page between the two without
extra page-alignment waste between the file portion and the zero portion.
Public Methods
void DataWithZeroFillSegment<Policy> (size_type offset, size_type vaddr, size_type memsz, size_type filesz)
Defined at line 214 of file ../../src/lib/elfldltl/include/lib/elfldltl/internal/load-segment-types.h
template <class Diagnostics, class Other>
fit::result<bool, DataWithZeroFillSegment<Policy>> Copy (Diagnostics & diag, const Other & other)
Defined at line 219 of file ../../src/lib/elfldltl/include/lib/elfldltl/internal/load-segment-types.h
size_type filesz ()
Only a leading subset of the in-memory segment is loaded from the file.
Defined at line 230 of file ../../src/lib/elfldltl/include/lib/elfldltl/internal/load-segment-types.h
size_type MakeAligned (size_type page_size)
Modify the segment in place so that filesz() is page-aligned.
Return the size of the partial page left at the end of the new size,
which needs to be zeroed in place before the segment is mapped.
Defined at line 235 of file ../../src/lib/elfldltl/include/lib/elfldltl/internal/load-segment-types.h