Rustaceans at the border
Rustaceans at the border
Posted Apr 16, 2022 11:26 UTC (Sat) by smurf (subscriber, #17840)In reply to: Rustaceans at the border by nybble41
Parent article: Rustaceans at the border
Any C compiler worth its salt already can put each function into its own section, which the linker then skips if it's not referenced. This scheme has been supported by gcc/ld since, umm, whenever. It's hardly as comprehensive as LTO but gets the job done well enough for the kernel and, frankly, most other codebases that aren't heavily obfuscated C++.
