<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello folks,<div class=""><br class=""></div><div class="">I’m developing an application that uses Orc JIT for C++, which works swimmingly on Mac OS X. However, the Windows version has been a battle and a half, and it’s now at the point where I need some assistance to progress.</div><div class=""><br class=""></div><div class="">The problem I’m having is “Relocation overflow” (related: <a href="https://llvm.org/bugs/show_bug.cgi?id=23228#c8" class="">https://llvm.org/bugs/show_bug.cgi?id=23228#c8</a>, see #8) … so I spoke to some clang developers who focussed on Windows at CppCon last week, and they gave me the following advice:</div><div class="">- Use ELF</div><div class="">    - Using this results in another issue about comdat sections, see here: <a href="https://root.cern.ch/phpBB3/viewtopic.php?t=19808" class="">https://root.cern.ch/phpBB3/viewtopic.php?t=19808</a></div><div class="">- Stick with COFF, but use the large code model</div><div class="">    - No observed difference, seems to be the case because JITDefault is being used in the same way as Large, which would make sense</div><div class="">    - According to the clang developers I spoke to, Lang and Andy might have an interest in fixing this (would seem likely, as they’re the two commenters on the first issue I linked), since it’s better to use COFF on Windows than keep trying to work around it</div><div class=""><br class=""></div><div class="">Any ideas?</div><div class=""><br class=""></div><div class="">Thanks in advance!</div></body></html>