1
1
mirror of https://github.com/rui314/mold.git synced 2024-11-11 16:58:12 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-10-25 14:09:24 +09:00
parent 3c746d26f6
commit 5964365cf8
3 changed files with 4 additions and 5 deletions

View File

@ -10,6 +10,8 @@ using llvm::opt::InputArgList;
Config config;
constexpr int PAGE_SIZE = 4096;
//
// Command-line option processing
//

6
mold.h
View File

@ -220,11 +220,9 @@ public:
virtual uint64_t get_size() const = 0;
StringRef name;
int64_t fileoff = -1;
uint64_t fileoff;
uint32_t alignment = 1;
ELF64LE::Shdr shdr = {};
protected:
int64_t size = -1;
};
// ELF header

View File

@ -109,7 +109,6 @@ void OutputSection::set_fileoff(uint64_t off) {
chunks[i]->offset = off;
off += chunks[i]->get_size();
}
size = off - fileoff;
}
static StringRef get_output_name(StringRef name) {