mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-24 02:00:47 +02:00
Fixes executing musl applications with the dynamic linker. It was using the main executable's p_offset instead of the interpreter's. Wasn't a problem with glibc since it uses a different symbol to find the base (Don't ask me why it does this). musl dynamic linker on the other hand just uses AT_BASE directly and since it was calculated incorrectly it was crashing. Testing application was `ls` which had a p_offset of 0x40, so it would try and read some values from AT_BASE, starting at an offset below where it was mapped.