3 ms·
There are a variety of flags for making executables smaller. How do those compare to manually supplying _start?
by jonstewart 4y ago
There are a variety of flags for making executables smaller. How do those compare to manually supplying _start?
- oso2k 4y agoglibc’s pre-main code is still far larger even with optimized flags. It’s at least a couple KB of disk. You can see the flags I used. I think only ‘-nostdlib’ has to be removed. Some of the code & data glibc adds has purpose (like TLS (thread level storage) bits). https://github.com/lpsantil/rt0/blob/master/STATS.md https://github.com/lpsantil/rt0/blob/master/STATS.md