We were removing a bunch of custom changes in Emscripten and noticed that out of all of them, 64-bit file support (in particular llseek) still isn't supported in Emscripten, even though we aren't the only ones that want this feature (eg.
#5250). So we have upstreamed this to a PR for Emscripten at
#8759.
Notably, we added an extra setting called LARGE_FILESYSTEM which when enabled will allow for seeks larger than the 2^32 limit. Due to still using JavaScript doubles, however, it still has a hard 2^53 limit to prevent weird errors to do with double accuracy. No other places were found that required changes for this support and nothing was found in the documents specifically specifying a 32-bit limit, however a test case has been added.
We hope that you accept these changes into the main repo :)