1
1
mirror of https://github.com/rui314/mold.git synced 2024-11-14 07:18:42 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-10-22 20:40:23 +09:00
parent f2f5b68058
commit 74e4694f7b
2 changed files with 2 additions and 5 deletions

View File

@ -152,7 +152,7 @@ static std::vector<ELF64LE::Phdr> create_phdrs() {
static std::vector<ELF64LE::Shdr *>
create_shdrs(ArrayRef<OutputChunk *> output_chunks) {
static ELF64LE::Shdr null_entry;
static ELF64LE::Shdr null_entry = {};
std::vector<ELF64LE::Shdr *> vec;
vec.push_back(&null_entry);

5
mold.h
View File

@ -256,7 +256,7 @@ public:
}
uint64_t get_size() const override {
return hdr.size() * sizeof(hdr[0]);
return hdr.size() * sizeof(ELF64LE::Phdr[0]);
}
std::vector<ELF64LE::Phdr> hdr;
@ -291,9 +291,6 @@ public:
std::vector<InputChunk *> chunks;
static std::vector<OutputSection *> all_instances;
private:
uint64_t file_offset = 0;
};
class InterpSection : public OutputChunk {