ld can't deal with LTO bytecode in static libraries

2014-05-26 Thread Bernhard Rosenkränzer
Hi, I've run into some compile errors after updating to 4.9 -- usually getting undefined references to symbols defined in helper static libraries. It turns out this is triggered by gcc -flto now creating slim object files by default (-ffat-lto-objects fixes it) - but I think it is actually an ld

Re: ld can't deal with LTO bytecode in static libraries

2014-05-26 Thread Pinski, Andrew
You need to use gcc-ar wrappers when creating the archive in the first place. Thanks, Andrew On May 26, 2014, at 3:19 AM, Bernhard Rosenkränzer bernhard.rosenkran...@linaro.org wrote: Hi, I've run into some compile errors after updating to 4.9 -- usually getting undefined references to