comparison lld/COFF/Writer.cpp @ 223:5f17cb93ff66 llvm-original

LLVM13 (2021/7/18)
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 18 Jul 2021 22:43:00 +0900
parents 79ff65ed7e25
children c4bab56944e8
comparison
equal deleted inserted replaced
222:81f6424ef0e3 223:5f17cb93ff66
593 for (OutputSection *sec : outputSections) 593 for (OutputSection *sec : outputSections)
594 addressesChanged |= createThunks(sec, margin); 594 addressesChanged |= createThunks(sec, margin);
595 // If the verification above thought we needed thunks, we should have 595 // If the verification above thought we needed thunks, we should have
596 // added some. 596 // added some.
597 assert(addressesChanged); 597 assert(addressesChanged);
598 (void)addressesChanged;
598 599
599 // Recalculate the layout for the whole image (and verify the ranges at 600 // Recalculate the layout for the whole image (and verify the ranges at
600 // the start of the next round). 601 // the start of the next round).
601 assignAddresses(); 602 assignAddresses();
602 603
1580 // Absolute is never code, synthetic generally isn't and usually isn't 1581 // Absolute is never code, synthetic generally isn't and usually isn't
1581 // determinable. 1582 // determinable.
1582 break; 1583 break;
1583 case Symbol::LazyArchiveKind: 1584 case Symbol::LazyArchiveKind:
1584 case Symbol::LazyObjectKind: 1585 case Symbol::LazyObjectKind:
1586 case Symbol::LazyDLLSymbolKind:
1585 case Symbol::UndefinedKind: 1587 case Symbol::UndefinedKind:
1586 // Undefined symbols resolve to zero, so they don't have an RVA. Lazy 1588 // Undefined symbols resolve to zero, so they don't have an RVA. Lazy
1587 // symbols shouldn't have relocations. 1589 // symbols shouldn't have relocations.
1588 break; 1590 break;
1589 1591