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

temporary

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

View File

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