mirror of
https://github.com/rui314/mold.git
synced 2024-09-22 18:40:59 +03:00
temporary
This commit is contained in:
parent
59463ef19a
commit
e62255a2ae
4
mold.h
4
mold.h
@ -290,9 +290,7 @@ public:
|
|||||||
OutputPhdr() { shdr.sh_flags = llvm::ELF::SHF_ALLOC; }
|
OutputPhdr() { shdr.sh_flags = llvm::ELF::SHF_ALLOC; }
|
||||||
void relocate(u8 *buf) override;
|
void relocate(u8 *buf) override;
|
||||||
|
|
||||||
u64 get_size() const override {
|
u64 get_size() const override { return shdr.sh_size; }
|
||||||
return entries.size() * sizeof(ELF64LE::Phdr);
|
|
||||||
}
|
|
||||||
|
|
||||||
void construct(std::vector<OutputChunk *> §ions);
|
void construct(std::vector<OutputChunk *> §ions);
|
||||||
|
|
||||||
|
@ -123,6 +123,8 @@ void OutputPhdr::construct(std::vector<OutputChunk *> &chunks) {
|
|||||||
for (Phdr &ent : entries)
|
for (Phdr &ent : entries)
|
||||||
if (ent.phdr.p_type == PT_LOAD)
|
if (ent.phdr.p_type == PT_LOAD)
|
||||||
ent.members.front()->starts_new_ptload = true;
|
ent.members.front()->starts_new_ptload = true;
|
||||||
|
|
||||||
|
this->shdr.sh_size = entries.size() * sizeof(ELF64LE::Phdr);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OutputPhdr::relocate(u8 *buf) {
|
void OutputPhdr::relocate(u8 *buf) {
|
||||||
|
Loading…
Reference in New Issue
Block a user