J.C. Pizarro wrote:
A solution is using the -shared option to generate ".so" library.
That does not solve things in environments like embedded environments where there are no shared libraries.
Another future solution is pack the big ".so" library with UPX (Ultimate Packer for eXecutables) or extend the ELF format to permit pack the sections with GZ, BZ2 or LZMA.
We are worried about code space in memory, not space on disk!