Partial LTO?
Partial LTO?
Posted Aug 22, 2012 13:23 UTC (Wed) by nix (subscriber, #2304)In reply to: Partial LTO? by jzbiciak
Parent article: Link-time optimization for the kernel
It's just ld -r, and it's done in every directory in the kernel tree (that has any .o files in it at all), generating either module.o or built-in.o files that are then linked together to generate final modules or the kernel proper (though the kernel proper also has a bunch of other object files, most of the bulk is in built-in.o files). The LTO sections should get carried along with this, and then at full link time the linker plugin should pick them up and do a full LTO.