<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Sven Barth <<a href="mailto:pascaldragon@googlemail.com">pascaldragon@googlemail.com</a>> schrieb am Do., 6. Juni 2024, 11:16:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Ondrej Pokorny via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank" rel="noreferrer">fpc-pascal@lists.freepascal.org</a>> schrieb am Do., 6. Juni 2024, 09:30:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I am on Windows 64bit, but using the i386 compiler.<br>
<br>
I have to link a 3rd party OBJ file with {$L 'xyz.obj'}.<br>
<br>
With the internal linker I get these errors:<br>
Error: COMDAT selection mode 0 not supported (section: "0")<br>
Error: Failed reading coff file, invalid section index while reading xyz.obj<br>
Error: Associative COMDAT section for section ".rdata" not found<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Can you provide a small example as a bug report that shows this behavior (preferably also with source for the object file) so that we can improve the internal linker? </div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Thanks to your privately provided example I was able to solve that (though it still won't link due to missing symbols, but that is not the linker's fault and probably also the reason why the external linker fails as well). I still don't understand why the object file contained a COMDAT field with an invalid selection of 0, but it seems that other linkers ignore that as well... 🤷‍♀️</div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div></div>