How Does the “File Size is Smaller Than Mem Size” Optimization Work in GNU ld for the .bss Section?
This article explains how the GNU linker (GNU ld) can save disk space for symbols in the .bss section. TL;DR: If a section is of type SHT_NOBITS and if it is the last section in a LOAD segment, GNU ld uses this optimization. When you build software with a compiled Read more…