mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 10:00:16 +02:00
When a guest executable is invoked through two or more levels of symlink, FEX expands $ORIGIN in its DT_RPATH/DT_RUNPATH to the directory of the intermediate symlink rather than the directory of the fully-resolved binary. Libraries referenced relative to $ORIGIN then fail to load. This PR fixes the issue by continuously chasing the symlinks until we find the actual executable name.