Does ld offer Link-Time Optimizations? It's planned to add this kind of functionality? There are some external projects that implement some of them, but it can interesting to include its functionality in mainstream ld. The most interesting is Diablo. There is a wider explanation and some documentation in this webpage: www.elis.ugent.be/diablo/