1
1
mirror of https://github.com/rui314/mold.git synced 2024-12-27 10:23:41 +03:00

Do not unnecessarily page-align some segments

This commit is contained in:
Rui Ueyama 2021-06-04 15:33:01 +09:00
parent 507ee38975
commit e076414f91

View File

@ -163,6 +163,9 @@ std::vector<ElfPhdr<E>> create_phdr(Context<E> &ctx) {
}
// Create PT_LOAD segments.
for (OutputChunk<E> *chunk : ctx.chunks)
chunk->new_page = false;
for (i64 i = 0, end = ctx.chunks.size(); i < end;) {
OutputChunk<E> *first = ctx.chunks[i++];
if (!(first->shdr.sh_flags & SHF_ALLOC))