So, I am trying to make a mobile SDL game as small as possible.
Currently, I am compiling each library (SDL, SDL_image, etc.) as a shared object, and then compiling my game all together into a shared library. The problem of using a library is that there is no official entry point, so the linker does not know what can safely be removed.
My compiler does not support
--gc-sections, so I cannot use that.
Do you know any other ways to make games smaller?