mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-11 18:01:03 +00:00
hactool's bundled mbedtls 2.6.1 adds into memory and changes the flags in its MULADDC asm without saying so. gcc builds happen to work; clang, the Linux release's compiler, keeps values in registers across it at -O1 and above, so every RSA check failed (NCA header, NPDM, ACID) and the AppImage's setup stopped at the update merge. Found by installing from the mounted AppImage; a bisection of the mbedtls objects pointed at bignum.o, and the memory and cc clobbers (as later mbedtls releases have them) fix it. With the patch the full install from the AppImage completes and the game runs.