Stephen Thomas: I am just curios to know what linker you used and if you tried using the gold linker with the plugin?
Nikos Chantziaras: I used the standard linker. It seems upstream recommends Gold though, since it allows LTO in cases where static linking against .a object archives is performed. But I don't use it at this point since I'm not sure about whether --as-needed related (and other) problems are still an issue. (http://blog.flameeyes.eu/tag/gold)