mirror of
https://github.com/rui314/mold.git
synced 2024-12-27 10:23:41 +03:00
temporary
This commit is contained in:
parent
4a4973e047
commit
50d235add1
@ -88,6 +88,10 @@ void OutputPhdr::construct(std::vector<OutputChunk *> &chunks) {
|
||||
}
|
||||
}
|
||||
|
||||
for (Phdr &ent : entries)
|
||||
for (OutputChunk *chunk : ent.members)
|
||||
ent.phdr.p_align = std::max(ent.phdr.p_align, chunk->shdr.sh_addralign);
|
||||
|
||||
for (Phdr &ent : entries)
|
||||
ent.members.front()->starts_segment = true;
|
||||
}
|
||||
@ -128,6 +132,7 @@ void OutputSection::set_fileoff(uint64_t off) {
|
||||
void OutputSection::set_vaddr(uint64_t va) {
|
||||
shdr.sh_addr = va;
|
||||
for (InputSection *isec : chunks) {
|
||||
va = align_to(va, isec->shdr.sh_addralign);
|
||||
isec->vaddr = va;
|
||||
va += isec->shdr.sh_size;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user