mirror of
https://github.com/rui314/mold.git
synced 2024-11-11 16:58:12 +03:00
temporary
This commit is contained in:
parent
3c746d26f6
commit
5964365cf8
2
main.cc
2
main.cc
@ -10,6 +10,8 @@ using llvm::opt::InputArgList;
|
||||
|
||||
Config config;
|
||||
|
||||
constexpr int PAGE_SIZE = 4096;
|
||||
|
||||
//
|
||||
// Command-line option processing
|
||||
//
|
||||
|
6
mold.h
6
mold.h
@ -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
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user