<div dir="ltr">Hi,<div><br></div><div>The reading the import directory (.idata section in COFF file format) with COFF parser is broken. Basically, it calculates the section size wrong, and doesn't even move the iterator when trying to iterate.</div><div><br></div><div>I fixed the problems without touching the API and tried to keep the changes in minimum.</div><div><br></div><div>I also wrote a unit test that checks whether parsing the imports and export works.</div><div><br></div><div>However, I haven't got any knowledge how the test suite in LLVM works, so the test needs to be modified and adapted to that.</div><div><br></div><div>The patch is attached.</div><div><br></div><div>Best regards,</div><div>Pyry Kontio</div></div>