mirror of
https://github.com/rui314/mold.git
synced 2024-09-20 09:27:45 +03:00
temporary
This commit is contained in:
parent
056042c647
commit
0c2e3e30be
4
main.cc
4
main.cc
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user