With https://reviews.llvm.org/D87537 we made it an error
to export a mutable global with the +mutable-globals feature
present. However, this broke the use of the --export-all
flag because the __stack_pointer which is present in almost
all programs is a mutable global.
This also revealed that we didn't have any test coverage for
the --export-all flag.
This change fixes the current breakage on the emscripten-releases
roller.
Why was this change necessary?