CharmedBaryon / CommonLibSSE-NG

This is a reverse engineered library for Skyrim Special Edition and Skyrim VR.
MIT License
139 stars 31 forks source link

Support for linking with LLVM linker #23

Open jpstewart opened 2 years ago

jpstewart commented 2 years ago

This currently does not work due to a bug in SKSE, which does not properly find exports by name. This bug has been reported and is being looked at. In the mean time this issue should be explored to see if there is a particular configuration for lld-link.exe that can exactly mimic the MSVC linker behavior, to avoid needing an SKSE update.

jpstewart commented 2 years ago

The bug in SKSE with getting the exports by name has been reported to Ian and acknowledged. This may require an update on the SKSE side. Ideally there would be some option that can be passed to the linker to start exports at ordinal 0, which would make it a drop in replacement for MSVC's linker, but so far there is no luck finding such an option or a workaround.

jpstewart commented 2 years ago

I've confirmed that the null first export is hard coded to be a null address and so there is no workaround on this side. SKSE will require a fix to its export lookup for this to work. Issue will remain open until a fixed SKSE64 and SKSEVR is released.