mirror of
https://github.com/rui314/mold.git
synced 2024-11-14 07:18:42 +03:00
temporary
This commit is contained in:
parent
f2f5b68058
commit
74e4694f7b
2
main.cc
2
main.cc
@ -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
5
mold.h
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user