search for: relocsect

Displaying 1 result from an estimated 1 matches for "relocsect".

Did you mean: relocent
2016 Jun 21
2
[LLD] thunk implementation correctness depends on order of input section.
...t;Alignment); IS->OutSecOff = Off; scanRelocations(*IS); // Now that scan relocs possibly changed the size, update the offset. Sec->setSize(Off + S->getSize()); } else if (auto *EH = dyn_cast<EhInputSection<ELFT>>(S)) { if (EH->RelocSection) scanRelocations(*EH, *EH->RelocSection); } }); } Adding a thunk to an InputSection that has already been processed will mean that its size will not be updated by Sec->setSize(Off + S->getSize()); this leads to corrupt or missing thunks being generated as they are...