1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-20 01:18:53 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-10-19 23:57:08 +09:00
parent 056042c647
commit 0c2e3e30be

16
main.cc
View File

@ -175,14 +175,14 @@ int main(int argc, char **argv) {
output_section_timer.stopTimer();
file_offset_timer.startTimer();
for_each(output_sections, [](OutputSection *osec) {
uint64_t off = 0;
for (InputSection *isec : osec->sections) {
off = align_to(off, isec->get_alignment());
isec->output_file_offset = off;
off += isec->get_size();
}
});
uint64_t off = 0;
for (OutputSection *osec : output_sections) {
for (InputSection *isec : osec->sections) {
off = align_to(off, isec->get_alignment());
isec->output_file_offset = off;
off += isec->get_size();
}
}
file_offset_timer.stopTimer();
#if 0