mirror of
https://github.com/rui314/mold.git
synced 2024-12-29 11:24:36 +03:00
temporary
This commit is contained in:
parent
a0c224fc9d
commit
ccb09cdf73
@ -181,7 +181,6 @@ public:
|
||||
ObjectFile *file;
|
||||
OutputSection *output_section;
|
||||
StringRef output_section_name;
|
||||
uint64_t output_file_offset;
|
||||
int64_t offset = -1;
|
||||
uint32_t alignment;
|
||||
|
||||
|
2
main.cc
2
main.cc
@ -176,7 +176,7 @@ int main(int argc, char **argv) {
|
||||
for (OutputSection *osec : output_sections) {
|
||||
for (InputSection *isec : osec->sections) {
|
||||
filesize = align_to(filesize, isec->alignment);
|
||||
isec->output_file_offset = filesize;
|
||||
isec->offset = filesize;
|
||||
filesize += isec->get_size();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user