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:
parent
507ee38975
commit
e076414f91
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user